menu

WinForms

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

    Show / Hide Table of Contents

    Class GridModelInsertRangeCommand

    Holds undo information about a previous RemoveRange(Int32, Int32) operation.

    Inheritance
    System.Object
    SyncfusionCommand
    GridModelCommand
    GridModelInsertRangeCommand
    Inherited Members
    GridModelCommand.SetDescription(String)
    GridModelCommand.Description
    GridModelCommand.Grid
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridModelInsertRangeCommand : GridModelCommand
    Remarks

    The Execute() method will call InsertRange(Int32, Int32) with information stored in this object and scroll the affect range into the current grid view.

    Constructors

    GridModelInsertRangeCommand(GridModelRowColOperations, Int32, Int32, GridModelInsertRangeOptions)

    Initializes the new instances ofGridModelInsertRangeCommand with information how to execute a InsertRange(Int32, Int32) command at a later time and associates it with a GridModelRowColOperations instance.

    Declaration
    public GridModelInsertRangeCommand(GridModelRowColOperations rco, int insertAt, int count, GridModelInsertRangeOptions iro)
    Parameters
    Type Name Description
    GridModelRowColOperations rco

    The GridModelRowColOperations this command is associated with.

    System.Int32 insertAt

    The row or column where cells should be inserted.

    System.Int32 count

    The number of rows or columns to insert.

    GridModelInsertRangeOptions iro

    Holds additional information for InsertRange(Int32, Int32) command such as cell contents, row, and column sizes, hidden state, and covered cells state.

    Methods

    Execute()

    Executes the command.

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