csharp
public sealed class AddGroupCommandDrawing a box round some nodes.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (2)
public override string NameWhat this is called in the undo history, as a person would say it.
public GraphGroup GroupThe group, which is the same object on every redo.
Methods (3)
public AddGroupCommand(NodeGraphModel graph, string title, IEnumerable<NodeId> members, EditorDocument? document = null)Describes adding a group.
protected override void Apply()Makes the change. Called once on execute and again on every redo.
protected override void Revert()Puts back exactly what Apply changed.
Used by (2)
- CommandTestsVixen.Editor.NodeGraph.Tests
- NodeGraphViewVixen.Editor.NodeGraph