Syncfusion.Grid.Windows


Syncfusion.Windows.Forms.Grid Namespace > GridModel Class > SubtractBorders Method : SubtractBorders(Rectangle,GridStyleInfo,Boolean) Method
The System.Drawing.Rectangle with the cell bounds.
The GridStyleInfo object that holds cell information.
Indicates if grid is in RightToLeft mode.

SubtractBorders(Rectangle,GridStyleInfo,Boolean) Method

Removes border margins from a given cell rectangle. The borders are determined from a specified style with cell content information.
Syntax
'Declaration
 
Public Overloads Function SubtractBorders( _
   ByVal cellBounds As Rectangle, _
   ByVal style As GridStyleInfo, _
   ByVal isRightToLeft As Boolean _
) As Rectangle
'Usage
 
Dim instance As GridModel
Dim cellBounds As Rectangle
Dim style As GridStyleInfo
Dim isRightToLeft As Boolean
Dim value As Rectangle
 
value = instance.SubtractBorders(cellBounds, style, isRightToLeft)

Parameters

cellBounds
The System.Drawing.Rectangle with the cell bounds.
style
The GridStyleInfo object that holds cell information.
isRightToLeft
Indicates if grid is in RightToLeft mode.

Return Value

The System.Drawing.Rectangle with the cell bounds excluding its borders.
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also