Class GridDrawCurrentCellBorderEventArgs
Provides data about the DrawCurrentCellBorder event when the grid draws a border around the current cell.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridDrawCurrentCellBorderEventArgs : GridCellCancelEventArgs
Remarks
By default, the grid will draw a black rectangle around the current cell. If the grid does not have focus, GridFocused is False and the grid will draw a dashed border.
If you handle this event and implement your own drawing for the current cell border, you should set System.ComponentModel.CancelEventArgs.Cancel to True.
Constructors
GridDrawCurrentCellBorderEventArgs(Int32, Int32, Graphics, Rectangle, Boolean, GridStyleInfo, GridShowCurrentCellBorder)
Initializes the new instances for the GridDrawCurrentCellBorderEventArgs class.
Declaration
public GridDrawCurrentCellBorderEventArgs(int rowIndex, int colIndex, Graphics g, Rectangle bounds, bool gridFocused, GridStyleInfo style, GridShowCurrentCellBorder showBorder)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |
System.Drawing.Graphics | g | The graphics context. |
System.Drawing.Rectangle | bounds | The bounds of the cell rectangle. |
System.Boolean | gridFocused | Indicates if grid has focus. |
GridStyleInfo | style | The style information for the current cell. |
GridShowCurrentCellBorder | showBorder | The settings how and when the current cell border should be drawn. |
Properties
Bounds
Gets the bounds of the cell rectangle.
Declaration
[TraceProperty(true)]
public Rectangle Bounds { get; }
Property Value
Type |
---|
System.Drawing.Rectangle |
Graphics
Gets the graphics context.
Declaration
[TraceProperty(true)]
public Graphics Graphics { get; }
Property Value
Type |
---|
System.Drawing.Graphics |
GridFocused
Gets a value indicating whether grid has focus.
Declaration
[TraceProperty(true)]
public bool GridFocused { get; }
Property Value
Type |
---|
System.Boolean |
ShowBorder
Gets the settings how and when the current cell border should be drawn.
Declaration
[TraceProperty(true)]
public GridShowCurrentCellBorder ShowBorder { get; }
Property Value
Type |
---|
GridShowCurrentCellBorder |
Style
Gets the style information for the current cell.
Declaration
[TraceProperty(true)]
public GridStyleInfo Style { get; }
Property Value
Type |
---|
GridStyleInfo |