menu

WinForms

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

    Show / Hide Table of Contents

    Class GridModelSetCoveredRangesCommand

    Holds undo information about a previous Add(GridRangeInfo) or Remove(GridRangeInfo) operation on a CoveredRanges property in a GridModel instance.

    Inheritance
    System.Object
    SyncfusionCommand
    GridModelCommand
    GridModelSetCoveredRangesCommand
    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.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridModelSetCoveredRangesCommand : GridModelCommand
    Remarks

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

    Constructors

    GridModelSetCoveredRangesCommand(GridModelCoveredRanges, GridRangeInfoList, Boolean)

    Initializes the GridModelSetCoveredRangesCommand with information how to execute a SetCoveredRange(GridRangeInfo, Boolean) method at a later time.

    Declaration
    public GridModelSetCoveredRangesCommand(GridModelCoveredRanges cr, GridRangeInfoList ranges, bool setOrReset)
    Parameters
    Type Name Description
    GridModelCoveredRanges cr

    A reference to the CoveredRanges object.

    GridRangeInfoList ranges

    The list with ranges that should be changed.

    System.Boolean setOrReset

    True if ranges should be made covered; False if covered ranges should be removed.

    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