menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DrawPreviewRowEventArgs - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DrawPreviewRowEventArgs

    Represents a class that provides the data for the DrawPreviewRow event.

    Inheritance
    System.Object
    System.EventArgs
    GridEventArgs
    GridHandledEventArgs
    DrawPreviewRowEventArgs
    Inherited Members
    GridEventArgs.OriginalSender
    GridHandledEventArgs.Handled
    System.EventArgs.Empty
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.WinForms.DataGrid.Events
    Assembly: Syncfusion.SfDataGrid.WinForms.dll
    Syntax
    public class DrawPreviewRowEventArgs : GridHandledEventArgs

    Constructors

    DrawPreviewRowEventArgs(Graphics, Rectangle, String, Object, PreviewRowStyleInfo, Int32, Object)

    Initializes a new instance of the DrawPreviewRowEventArgs class.

    Declaration
    public DrawPreviewRowEventArgs(Graphics graphics, Rectangle bounds, string text, object record, PreviewRowStyleInfo style, int rowIndex, object originalSender)
    Parameters
    Type Name Description
    System.Drawing.Graphics graphics

    The graphics to draw the preview row.

    System.Drawing.Rectangle bounds

    The bounds of the preview row.

    System.String text

    The preview row text.

    System.Object record

    The record of the preview row.

    PreviewRowStyleInfo style

    The style of the preview row.

    System.Int32 rowIndex

    The row index of the preview data row.

    System.Object originalSender

    The source of the event.

    Properties

    Bounds

    Gets the bounds of the preview row.

    Declaration
    public Rectangle Bounds { get; }
    Property Value
    Type
    System.Drawing.Rectangle

    Graphics

    Gets the graphics for drawing the preview row.

    Declaration
    public Graphics Graphics { get; }
    Property Value
    Type
    System.Drawing.Graphics

    Record

    Gets the underlying record.

    Declaration
    public object Record { get; }
    Property Value
    Type Description
    System.Object

    The record.

    RowIndex

    Gets the row index of the preview row.

    Declaration
    public int RowIndex { get; }
    Property Value
    Type
    System.Int32

    Style

    Gets the style of the preview row.

    Declaration
    public PreviewRowStyleInfo Style { get; }
    Property Value
    Type
    PreviewRowStyleInfo

    Text

    Gets or sets the text which needs to be displayed on the preview row.

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved