Syncfusion.Grid.Windows
Example 


The row index.
The column index.
The GridStyleInfo object that holds cell information.
Specifies if the range covered by a floating cell should be returned.

GetCellClientRectangle Method

Get the cell client rectangle taking floated cells into consideration.
Syntax
'Declaration
 
Public Function GetCellClientRectangle( _
   ByVal rowIndex As Integer, _
   ByVal colIndex As Integer, _
   ByVal style As GridStyleInfo, _
   ByVal floatedCells As Boolean _
) As Rectangle
'Usage
 
Dim instance As GridCellRendererBase
Dim rowIndex As Integer
Dim colIndex As Integer
Dim style As GridStyleInfo
Dim floatedCells As Boolean
Dim value As Rectangle
 
value = instance.GetCellClientRectangle(rowIndex, colIndex, style, floatedCells)
public Rectangle GetCellClientRectangle( 
   int rowIndex,
   int colIndex,
   GridStyleInfo style,
   bool floatedCells
)

Parameters

rowIndex
The row index.
colIndex
The column index.
style
The GridStyleInfo object that holds cell information.
floatedCells
Specifies if the range covered by a floating cell should be returned.

Return Value

The System.Drawing.Rectangle for the client area.
Example
This example shows how to get the cell's client rectangle with given cell index.
GridStyleInfo style = this.gridControl1.GetViewStyleInfo(5, 4);
Rectangle value = this.gridControl1.GetCellRenderer(5, 4).GetCellClientRectangle(5, 4, style, true);
Console.WriteLine("Client rectangle of cell(5,4): " + value.ToString());
Dim style As GridStyleInfo = Me.gridControl1.GetViewStyleInfo(5, 4)
Dim value As Rectangle = Me.gridControl1.GetCellRenderer(5, 4).GetCellClientRectangle(5, 4, style, True)
Console.WriteLine("Client rectangle of cell(5,4): " & value.ToString())
AssemblyVersion

Syncfusion.Grid.Windows: 18.2460.0.44

See Also