menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridResizingColumnsEventArgs - API Reference

    Show / Hide Table of Contents

    Class GridResizingColumnsEventArgs

    Provides data about the cancelable ResizingColumns event.

    Inheritance
    System.Object
    SyncfusionCancelEventArgs
    GridResizingColumnsEventArgs
    Inherited Members
    SyncfusionCancelEventArgs.ToString()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public sealed class GridResizingColumnsEventArgs : SyncfusionCancelEventArgs
    Remarks

    GridResizingColumnsEventArgs is a custom event argument class used by the ResizingColumns event when the user is about to resize a column or is in the process of resizing a column.

    You can disallow the resizing of specific columns at run-time when you assign True to System.ComponentModel.CancelEventArgs.Cancel.

    You can also limit resizing columns to a given maximum value by changing the Width value.

    Constructors

    GridResizingColumnsEventArgs(GridRangeInfo, Int32, GridResizeCellsReason, GridBorder, GridBorder, Point)

    Initializes a new object.

    Declaration
    public GridResizingColumnsEventArgs(GridRangeInfo columns, int width, GridResizeCellsReason reason, GridBorder sizeIndicatorBorder, GridBorder boundsIndicatorBorder, Point point)
    Parameters
    Type Name Description
    GridRangeInfo columns

    The GridRangeInfo with rows affected by the current user action.

    System.Int32 width

    The new width of the columns.

    GridResizeCellsReason reason

    The originating reason for this event.

    GridBorder sizeIndicatorBorder

    The appearance of the line that indicates the new size.

    GridBorder boundsIndicatorBorder

    The appearance of the line that indicates the old boundaries.

    System.Drawing.Point point

    The mouse location.

    Properties

    BoundsIndicatorBorder

    Gets or sets the appearance of the line that indicates the old boundaries.

    Declaration
    [TraceProperty(true)]
    public GridBorder BoundsIndicatorBorder { get; set; }
    Property Value
    Type Description
    GridBorder

    Columns

    Gets the GridRangeInfo with rows affected by the current user action.

    Declaration
    [TraceProperty(true)]
    public GridRangeInfo Columns { get; }
    Property Value
    Type Description
    GridRangeInfo

    Point

    Gets the mouse location.

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

    Reason

    Gets the originating reason for this event.

    Declaration
    [TraceProperty(true)]
    public GridResizeCellsReason Reason { get; }
    Property Value
    Type Description
    GridResizeCellsReason

    SizeIndicatorBorder

    Gets or sets the appearance of the line that indicates the new size.

    Declaration
    [TraceProperty(true)]
    public GridBorder SizeIndicatorBorder { get; set; }
    Property Value
    Type Description
    GridBorder

    Width

    Gets or sets the new width of the columns.

    Declaration
    [TraceProperty(true)]
    public int Width { get; set; }
    Property Value
    Type Description
    System.Int32

    See Also

    GridResizingColumnsEventHandler
    ResizingColumns
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved