NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGrid.GetCellBounds (Int32, Int32)

Gets the Rectangle of the cell specified by row and column number.

[Visual Basic]
Overloads Public Function GetCellBounds( _
   ByVal row As Integer, _
   ByVal col As Integer _
) As Rectangle
[C#]
public Rectangle GetCellBounds(
   int row,
   int col
);
[C++]
public: Rectangle GetCellBounds(
   int row,
   int col
);
[JScript]
public function GetCellBounds(
   row : int,
   col : int
) : Rectangle;

Parameters

row
The number of the cell's row.
col
The number of the cell's column.

Return Value

A Rectangle that defines the current cell's corners.

Example [Visual Basic]

Teh following example uses the GetCellBounds method to return a Retangle of a specified cell.

[Visual Basic]

Private Sub GetRect()
   Dim rect As Rectangle
   rect = DataGrid1.GetCellBounds(0,0)
End Sub

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | DataGrid.GetCellBounds Overload List | GetCurrentCellBounds