menu

WinForms

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

    Show / Hide Table of Contents

    Class GridModelSetBanneredRangesCommand

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

    Inheritance
    System.Object
    SyncfusionCommand
    GridModelCommand
    GridModelSetBanneredRangesCommand
    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 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()
    Overrides
    SyncfusionCommand.Execute()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved