Class GridModelSetCoveredRangesCommand
Holds undo information about a previous Add(GridRangeInfo) or Remove(GridRangeInfo) operation on a CoveredRanges property in a GridModel instance.
Inherited Members
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()