WPF

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

    Show / Hide Table of Contents

    Class GridResizingColumnsEventArgs

    Provides data about the cancelable ResizingColumns event.

    Inheritance
    System.Object
    SyncfusionRoutedEventArgs
    GridResizingColumnsEventArgs
    Inherited Members
    SyncfusionRoutedEventArgs.ToString()
    Namespace: Syncfusion.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public sealed class GridResizingColumnsEventArgs : SyncfusionRoutedEventArgs
    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.Windows.RoutedEventArgs.Handled.

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

    Constructors

    GridResizingColumnsEventArgs(RoutedEvent, Object)

    Initializes a new instance of the GridResizingColumnsEventArgs class.

    Declaration
    public GridResizingColumnsEventArgs(RoutedEvent routedEvent, object source)
    Parameters
    Type Name Description
    System.Windows.RoutedEvent routedEvent

    The routed event identifier for this instance of the System.Windows.RoutedEventArgs class.

    System.Object source

    An alternate source that will be reported when the event is handled. This pre-populates the System.Windows.RoutedEventArgs.Source property.

    Properties

    AllowResize

    Gets or sets a value indicating whether the current column is resizable.

    Declaration
    public bool AllowResize { get; set; }
    Property Value
    Type Description
    System.Boolean

    Columns

    Gets or sets the index of the column.

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

    The index of the column.

    InHiddenColResize

    Indicates whether the resizing is happening for hidden columns.

    Declaration
    [TraceProperty(true)]
    public bool InHiddenColResize { get; }
    Property Value
    Type Description
    System.Boolean

    Point

    Specifies the mouse hit point.

    Declaration
    public Point Point { get; }
    Property Value
    Type Description
    System.Windows.Point

    Reason

    Specifies the reason for this event and hints about the current state of the user action.

    Declaration
    public GridResizeCellsReason Reason { get; }
    Property Value
    Type Description
    GridResizeCellsReason

    Width

    Gets or sets the width.

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

    The width.

    See Also

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