Class GridResizingColumnsEventArgs
Provides data about the cancelable ResizingColumns event.
Inherited Members
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 |
---|
GridBorder |
Columns
Gets the GridRangeInfo with rows affected by the current user action.
Declaration
[TraceProperty(true)]
public GridRangeInfo Columns { get; }
Property Value
Type |
---|
GridRangeInfo |
Point
Gets the mouse location.
Declaration
[TraceProperty(true)]
public Point Point { get; }
Property Value
Type |
---|
System.Drawing.Point |
Reason
Gets the originating reason for this event.
Declaration
[TraceProperty(true)]
public GridResizeCellsReason Reason { get; }
Property Value
Type |
---|
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 |
---|
GridBorder |
Width
Gets or sets the new width of the columns.
Declaration
[TraceProperty(true)]
public int Width { get; set; }
Property Value
Type |
---|
System.Int32 |