Syncfusion.Grid.Windows
Example 


The row index.
The column index.
The GridStyleInfo object that holds cell information.

GetCellLayout Method

Returns the GridCellLayout for the specified cell using cell state information as specified in the style object and caches the layout information.
Syntax
'Declaration
 
Public Function GetCellLayout( _
   ByVal rowIndex As Integer, _
   ByVal colIndex As Integer, _
   ByVal style As GridStyleInfo _
) As GridCellLayout
'Usage
 
Dim instance As GridCellRendererBase
Dim rowIndex As Integer
Dim colIndex As Integer
Dim style As GridStyleInfo
Dim value As GridCellLayout
 
value = instance.GetCellLayout(rowIndex, colIndex, style)

Parameters

rowIndex
The row index.
colIndex
The column index.
style
The GridStyleInfo object that holds cell information.

Return Value

The GridCellLayout with layout information.
Example
This example shows how to get the cell layout from the given cell index and it's style.
GridStyleInfo style = this.gridControl1.GetViewStyleInfo(5, 4);
GridCellLayout value = this.gridControl1.GetCellRenderer(5, 4).GetCellLayout(5, 4, style, true);
Console.WriteLine("Client rectangle of cell(5,4): " + value.ClientRectangle.ToString()+"\nText rectangle of cells(5,4): "+value.TextRectangle.ToString());
Dim style As GridStyleInfo = Me.gridControl1.GetViewStyleInfo(5, 4)
Dim value As GridCellLayout = Me.gridControl1.GetCellRenderer(5, 4).GetCellLayout(5, 4, style, True)
Console.WriteLine("Client rectangle of cell(5,4): " & value.ClientRectangle.ToString()+Constants.vbLf & "Text rectangle of cells(5,4): " & value.TextRectangle.ToString())
AssemblyVersion

Syncfusion.Grid.Windows: 18.2460.0.44

See Also