Class GridCellLayout
This class holds layout information and bounds for a cell.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridCellLayout
Constructors
GridCellLayout()
Initializes an new instance of the GridCellLayout class.
Declaration
public GridCellLayout()
GridCellLayout(Rectangle, Rectangle, Rectangle[], Rectangle)
Initializes a new CellLayout with the given parameters.
Declaration
[Obsolete("Use default constructor instead.")]
public GridCellLayout(Rectangle cellRectangle, Rectangle innerRectangle, Rectangle[] buttons, Rectangle textRectangle)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | cellRectangle | This is the full cell rectangle including borders. |
System.Drawing.Rectangle | innerRectangle | This is the cell area without borders. |
System.Drawing.Rectangle[] | buttons | An array of System.Drawing.Rectangle with boundaries for all cell buttons. |
System.Drawing.Rectangle | textRectangle | This is the text rectangle. It is the cell rectangle without buttons, borders, or text margins. |
Properties
Buttons
Gets or sets an array of System.Drawing.Rectangle with boundaries for all cell buttons.
Declaration
public Rectangle[] Buttons { get; set; }
Property Value
Type |
---|
System.Drawing.Rectangle[] |
CellRectangle
Gets or sets the full cell rectangle including borders.
Declaration
public Rectangle CellRectangle { get; set; }
Property Value
Type |
---|
System.Drawing.Rectangle |
ClientRectangle
Gets or sets the client rectangle. It is the cell rectangle without buttons and borders.
Declaration
public Rectangle ClientRectangle { get; set; }
Property Value
Type |
---|
System.Drawing.Rectangle |
InnerRectangle
Gets or sets the cell area without borders.
Declaration
public Rectangle InnerRectangle { get; set; }
Property Value
Type |
---|
System.Drawing.Rectangle |
TextRectangle
Gets or sets the text rectangle. It is the cell rectangle without buttons, borders, or text margins.
Declaration
public Rectangle TextRectangle { get; set; }
Property Value
Type |
---|
System.Drawing.Rectangle |