menu

WPF

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

    Show / Hide Table of Contents

    Class GridSelectionStateCommand

    Holds undo information about the selection state at a previous operation.

    Inheritance
    System.Object
    SyncfusionCommand
    GridModelCommand
    GridSelectionStateCommand
    Inherited Members
    GridModelCommand.Description
    GridModelCommand.Grid
    GridModelCommand.SetDescription(String)
    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.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public class GridSelectionStateCommand : GridModelCommand
    Remarks

    A GridSelectionStateCommand is created by the CreateSelectionStateCommand() of CommandStack.

    Constructors

    GridSelectionStateCommand(GridModel, Int32, Int32, GridRangeInfo[])

    Initializes a new GridSelectionStateCommand with information about current cell position and selected ranges.

    Declaration
    public GridSelectionStateCommand(GridModel table, int currentRow, int currentCol, GridRangeInfo[] ranges)
    Parameters
    Type Name Description
    GridModel table

    The GridModel this command is associated with.

    System.Int32 currentRow

    The row index of current cell.

    System.Int32 currentCol

    The column index of current cell.

    GridRangeInfo[] ranges

    The currently selected ranges.

    Methods

    Execute()

    Executes the command.

    Declaration
    public override void Execute()
    Overrides
    SyncfusionCommand.Execute()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved