Class PluginRouteEditorState
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Binding state for an editable, stable-keyed route list.
public sealed class PluginRouteEditorState : PluginPanelBinding, IPluginPanelBinding, INotifyPropertyChanged
- Inheritance
-
PluginRouteEditorState
- Implements
- Inherited Members
Properties
Legs
The current route rows in display order.
public IReadOnlyList<PluginRouteLegRow> Legs { get; }
Property Value
Methods
Move(string, int)
Moves a row to a new display index.
public bool Move(string key, int newIndex)
Parameters
Returns
Remove(string)
Removes a row by stable key.
public bool Remove(string key)
Parameters
keystring
Returns
SetLegs(IEnumerable<PluginRouteLegRow>)
Replaces the route while preserving the supplied row keys.
public void SetLegs(IEnumerable<PluginRouteLegRow> legs)
Parameters
legsIEnumerable<PluginRouteLegRow>