Class CompositeCommand¶
Namespace: Apogee.Host.Editing
Assembly: Apogee.Host.dll
Several commands that are one step.
public sealed class CompositeCommand : IEditCommand
Inheritance¶
Implements¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors¶
CompositeCommand(string, IReadOnlyList<IEditCommand>)¶
Several commands that are one step.
public CompositeCommand(string name, IReadOnlyList<IEditCommand> commands)
Parameters¶
name string
commands IReadOnlyList<IEditCommand>
Properties¶
Name¶
What the Edit menu says: "Move Cube", "Delete Light".
public string Name { get; }
Property Value¶
Methods¶
Apply()¶
Does the edit (again, when redoing).
public void Apply()
TryMerge(IEditCommand)¶
Lets the command before following take it in, so that a whole drag is one step: following has been done already; the command folds its result in (its "after") and returns true.
Most commands return false.
public bool TryMerge(IEditCommand following)
Parameters¶
following IEditCommand
Returns¶
Undo()¶
public void Undo()