New to Telerik UI for WinFormsStart a free 30-day trial

Undoable group action.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class GroupUndoableCommand : GraphCommandBase, ICommand

Inheritance: objectGraphCommandBaseGroupUndoableCommand

Implements: ICommand

Inherited Members GraphCommandBase.CanExecute(object)GraphCommandBase.NameGraphCommandBase.DiagramItem

Constructors

Initializes a new instance of the GroupUndoableCommand class.

C#
public GroupUndoableCommand(IGroupService service, string groupName, IGroupable[] items)
Parameters:serviceIGroupService

The service.

groupNamestring

Name of the group.

itemsIGroupable[]

The items.

Properties

Gets the group.

C#
public IGroup Group { get; }

Methods

Executes the specified state.

C#
public override void Execute(object state = null)
Parameters:stateobject

Overrides: GraphCommandBase.Execute(object)

Executes and undoable action.

C#
public override void Redo()

Overrides: GraphCommandBase.Redo()

Unwinds an undoable action.

C#
public override void Undo(object state = null)
Parameters:stateobject

Overrides: GraphCommandBase.Undo(object)