Skip to content

DTL.Range.BasicRect.SetPoint

sitRyo edited this page Jan 15, 2020 · 1 revision
// (1)
BasicRect SetPoint(uint value)
// (2)
BasicRect SetPoint(uint startX, uint startY)

概要

(1) startX, startYにvalueを指定する。 (2) startX, pointYにそれぞれ個別の値を指定する。

戻り値

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

例外

投げない

Example

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

Output

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