Skip to content
ChartForgeX
Class

TopologyScenarioFluent

ChartForgeX.Topology

Namespace
ChartForgeX.Topology
Assembly
ChartForgeX
Modifiers
static

The fluent methods of TopologyScenario, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • TopologyScenarioFluent

Methods

public static TopologyScenario AutoPlay(TopologyScenario topologyScenario, bool value = true) #

Sets TopologyScenario.AutoPlay: Gets or sets whether an HTML adapter may start playback automatically when motion is allowed.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { AutoPlay = value };    topologyScenario.AutoPlay(value);
public static TopologyScenario Color(TopologyScenario topologyScenario, string? value) #

Sets TopologyScenario.Color: Gets or sets an optional scenario accent color: a CSS color such as #2563eb, rgb(37 99 235) or a named color.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value string? required
The value.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Color = value };    topologyScenario.Color(value);
public static TopologyScenario Description(TopologyScenario topologyScenario, string? value) #

Sets TopologyScenario.Description: Gets or sets an optional scenario description.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value string? required
The value.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Description = value };    topologyScenario.Description(value);
public static TopologyScenario Id(TopologyScenario topologyScenario, string value) #

Sets TopologyScenario.Id: Gets or sets the stable scenario identifier.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value string required
The value.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Id = value };    topologyScenario.Id(value);
public static TopologyScenario Label(TopologyScenario topologyScenario, string value) #

Sets TopologyScenario.Label: Gets or sets the scenario label used by host controls.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value string required
The value.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Label = value };    topologyScenario.Label(value);
public static TopologyScenario LoopPlayback(TopologyScenario topologyScenario, bool value = true) #

Sets TopologyScenario.LoopPlayback: Gets or sets whether playback returns to the first route step after the last.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { LoopPlayback = value };    topologyScenario.LoopPlayback(value);
public static TopologyScenario PlaybackDelayMilliseconds(TopologyScenario topologyScenario, int value) #

Sets TopologyScenario.PlaybackDelayMilliseconds: Gets or sets the default time each route step remains visible during playback.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value int required
The value.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                                               // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { PlaybackDelayMilliseconds = value };    topologyScenario.PlaybackDelayMilliseconds(value);
public static TopologyScenario Spotlight(TopologyScenario topologyScenario, bool value = true) #

Sets TopologyScenario.Spotlight: Gets or sets whether non-route members are dimmed for a focused review.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TopologyScenario The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Topology.TopologyScenario { Spotlight = value };    topologyScenario.Spotlight(value);
Step 2 overloads
public static TopologyScenario Step(TopologyScenario topologyScenario, TopologyScenarioStep item) #

Adds an item to TopologyScenario.Steps: Gets ordered node and edge references that participate in the scenario.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
item ChartForgeX.Topology.TopologyScenarioStep required
The item.

Returns

TopologyScenario The same instance.
public static TopologyScenario Step(TopologyScenario topologyScenario, Action<TopologyScenarioStep> configure) #

Creates an item, configures it and adds it to TopologyScenario.Steps: Gets ordered node and edge references that participate in the scenario.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
configure System.Action<ChartForgeX.Topology.TopologyScenarioStep> required
Configures the new item before it is added.

Returns

TopologyScenario The same instance.
public static TopologyScenario Steps(TopologyScenario topologyScenario, IEnumerable<TopologyScenarioStep> items) #

Adds items to TopologyScenario.Steps: Gets ordered node and edge references that participate in the scenario.

Parameters

topologyScenario ChartForgeX.Topology.TopologyScenario required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyScenarioStep> required
The items, in order.

Returns

TopologyScenario The same instance.