Class GridModelSetBanneredRangesCommand
Holds undo information about a previous Add(GridRangeInfo) or Remove(GridRangeInfo) operation on a BanneredRanges 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 GridModelSetBanneredRangesCommand : GridModelCommand
Remarks
The Execute() method will call SetBanneredRange(GridRangeInfo, Boolean) with information stored in this object and scroll the affect range into the current grid view.
Constructors
GridModelSetBanneredRangesCommand(GridModelBanneredRanges, GridRangeInfoList, Boolean)
Initializes the new instances of GridModelSetBanneredRangesCommand with information how to execute a SetBanneredRange(GridRangeInfo, Boolean) method at a later time.
Declaration
public GridModelSetBanneredRangesCommand(GridModelBanneredRanges cr, GridRangeInfoList ranges, bool setOrReset)
Parameters
Type | Name | Description |
---|---|---|
GridModelBanneredRanges | cr | A reference to the BanneredRanges object. |
GridRangeInfoList | ranges | The list with ranges that should be changed. |
System.Boolean | setOrReset | True if ranges should be made bannered; False if bannered ranges should be removed. |
Methods
Execute()
Executes the command.
Declaration
public override void Execute()