Table of Contents

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

IReadOnlyList<PluginRouteLegRow>

Methods

Move(string, int)

Moves a row to a new display index.

public bool Move(string key, int newIndex)

Parameters

key string
newIndex int

Returns

bool

Remove(string)

Removes a row by stable key.

public bool Remove(string key)

Parameters

key string

Returns

bool

SetLegs(IEnumerable<PluginRouteLegRow>)

Replaces the route while preserving the supplied row keys.

public void SetLegs(IEnumerable<PluginRouteLegRow> legs)

Parameters

legs IEnumerable<PluginRouteLegRow>