Skip to content

DTL.Range.RectBaseWithValue.SetValue

sitRyo edited this page Jan 15, 2020 · 1 revision
// (1)
BasicRect SetValue(int value)

概要

描画値を指定する。

戻り値

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

例外

投げない

Example

Border border = new Border(5);
border.SetValue(2).Draw(matrix);
new OutputConsole().Draw(matrix);

Output

2 2 2 2 2 2 2 2 2 2 
2 0 0 0 0 0 0 0 0 2 
2 0 0 0 0 0 0 0 0 2 
2 0 0 0 0 0 0 0 0 2 
2 0 0 0 0 0 0 0 0 2 
2 0 0 0 0 0 0 0 0 2 
2 0 0 0 0 0 0 0 0 2 
2 0 0 0 0 0 0 0 0 2 
2 0 0 0 0 0 0 0 0 2 
2 2 2 2 2 2 2 2 2 2 
Clone this wiki locally