csharp
public sealed class SetPropertyCommand<T>Setting one property to one value.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The command nearly every edit in the editor turns out to be, and the one that merges: a drag across a slider produces one of these per mouse-move and they collapse into a single entry that undoes to where the drag began. Public rather than internal because a cross-document operation builds these against documents other than its own.
Fields and properties (1)
public string NameWhat this is called in the undo history, as a person would say it.
Methods (4)
public SetPropertyCommand(EditorProperty<T> property, T oldValue, T newValue)Describes setting a property.
public void Do(EditorContext context)Applies the change.
public void Undo(EditorContext context)Puts back exactly what Do changed.
public bool TryMergeWith(IEditorCommand previous, out IEditorCommand? merged)
Used by (1)
- EditorPropertyVixen.Editor.Core