WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridDrawCurrentCellBorderEventArgs - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridDrawCurrentCellBorderEventArgs

    Provides data about the DrawCurrentCellBorder event when the grid draws a border around the current cell.

    Inheritance
    System.Object
    SyncfusionCancelEventArgs
    GridCellCancelEventArgs
    GridDrawCurrentCellBorderEventArgs
    Inherited Members
    GridCellCancelEventArgs.RowIndex
    GridCellCancelEventArgs.ColIndex
    SyncfusionCancelEventArgs.ToString()
    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 Description
    System.Drawing.Rectangle

    Graphics

    Gets the graphics context.

    Declaration
    [TraceProperty(true)]
    public Graphics Graphics { get; }
    Property Value
    Type Description
    System.Drawing.Graphics

    GridFocused

    Gets a value indicating whether grid has focus.

    Declaration
    [TraceProperty(true)]
    public bool GridFocused { get; }
    Property Value
    Type Description
    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 Description
    GridShowCurrentCellBorder

    Style

    Gets the style information for the current cell.

    Declaration
    [TraceProperty(true)]
    public GridStyleInfo Style { get; }
    Property Value
    Type Description
    GridStyleInfo
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved