GetGridContentBoundBox
Overloads
| Name | Description |
|---|---|
| GetGridContentBoundBox(int row, int column) | 캔버스 상에서 활성화된 GridStructure의 row by column에 위치한 GridCell의 여백을 제외한 영역(= Content 영역)의 3차원 BoundBox를 반환한다. |
GetGridContentBoundBox(int row, int column)
public BoundBox3D GetGridContentBoundBox(int row, int column)
캔버스 상에서 활성화된 GridStructure의 row by column에 위치한 GridCell의 여백을 제외한 영역(= Content 영역)의 3차원 BoundBox를 반환한다.
Parameters
| Name | Type | Description |
|---|---|---|
| row | int | GridCell의 행 인덱스 |
| column | int | GridCell의 열 인덱스 |
Returns
| Type | Description |
|---|---|
| BoundBox3D | 주어진 행과 열에 위치한 GridCell의 여백을 제외한 영역의 3차원 BoundBox |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
vizcore3d.Drawing2D.GridStructure.AddGridStructure(3, 2, 210, 100);
vizcore3d.Drawing2D.GridStructure.SetGridCellMargins(1, 1, 10, 30, 5, 5); // 1행 1열에 위치한 GridCell의 좌측 여백 10mm, 우측 여백 30mm, 상단 여백 5mm, 하단 여백 5mm로 수정
Data.BoundBox3D bBox = vizcore3d.Drawing2D.GridStructure.GetGridContentBoundBox(1, 1); // 1행 1열에 위치한 GridCell의 여백을 제외한 영역의 3차원 BoundBox 반환
// 반환값 : {Min: {10, 55, 0}, Max: {40, 95, 0}}
}