Skip to content

DTL.Range.BasicRect.GetPointX

sitRyo edited this page Jan 15, 2020 · 3 revisions
// (1)
uint GetPointX()
// (2)
BasicRect GetPointX(ref uint value)

概要

描画始点座標Xを取得する。

戻り値

(1) 戻り値の型はuintである。
(2) 引数にpointxを代入して, 戻り値としてBasicRectの参照値を返す。

例外

投げない

Example

Border border = new Border(5);
var matrix = new int[10, 10];
border.SetPointX(3).SetPointY(4);
Debug.Log(border.GetPointX());
Debug.Log(border.GetPointY());
border.Draw(matrix);
new OutputConsole().Draw(matrix);

Output

3
4
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 5 5 5 5 5 5 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 
0 0 0 5 0 0 0 0 0 5 
0 0 0 5 5 5 5 5 5 5 
Clone this wiki locally