Skip to content

DTL.Range.BasicRect.ClearHeight

sitRyo edited this page Jan 15, 2020 · 1 revision
BasicRect ClearHeight()

概要

描画縦幅Hを消去する。

戻り値

(1) 自分自身の参照値を返す。

例外

投げない

Example

var matrix = new int[10, 10];
Border border = new Border(5);
border.SetWidth(2);
border.Draw(matrix);
border.ClearWidth();
border.Draw(matrix);
new OutputConsole().Draw(matrix);

Output

5 5 5 5 5 5 5 5 5 5 
5 5 5 5 5 5 5 5 5 5 
5 0 0 0 0 0 0 0 0 5 
5 0 0 0 0 0 0 0 0 5 
5 0 0 0 0 0 0 0 0 5 
5 0 0 0 0 0 0 0 0 5 
5 0 0 0 0 0 0 0 0 5 
5 0 0 0 0 0 0 0 0 5 
5 0 0 0 0 0 0 0 0 5 
5 5 5 5 5 5 5 5 5 5 
Clone this wiki locally