Skip to content
ChartForgeX
Class

TopologyChart

ChartForgeX.Topology

Namespace
ChartForgeX.Topology
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent

Represents a renderer-independent topology diagram.

Inheritance

  • object
  • TopologyChart

Usage

Explore 393 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 159

Accepted by parameters 234

Constructors

public TopologyChart() #

Methods

public static TopologyChart Create() #

Creates a new topology chart.

Returns

TopologyChart A new topology chart.
public static TopologyChart FromData<TNode, TEdge>(IEnumerable<TNode?> nodes, IEnumerable<TEdge?> edges, Func<TNode?, string> nodeId, Func<TNode?, string> nodeLabel, Func<TEdge?, string> edgeId, Func<TEdge?, string> sourceNodeId, Func<TEdge?, string> targetNodeId, Action<TopologyNode, TNode?>? configureNode = null, Action<TopologyEdge, TEdge?>? configureEdge = null, TopologyLayoutMode layoutMode = Layered) #

Maps product-owned node and edge records into a deterministic, renderer-independent topology chart.

Type Parameters

TNode
The caller's node record type.
TEdge
The caller's edge record type.

Parameters

nodes System.Collections.Generic.IEnumerable<TNode?> required
The node records in deterministic input order.
edges System.Collections.Generic.IEnumerable<TEdge?> required
The edge records in deterministic input order.
nodeId System.Func<TNode?, string> required
Selects the stable node id.
nodeLabel System.Func<TNode?, string> required
Selects the visible node label.
edgeId System.Func<TEdge?, string> required
Selects the stable edge id.
sourceNodeId System.Func<TEdge?, string> required
Selects the source node id for an edge.
targetNodeId System.Func<TEdge?, string> required
Selects the target node id for an edge.
configureNode System.Action<ChartForgeX.Topology.TopologyNode, TNode?>? = null optional
Optionally maps product-neutral visual properties onto each created node.
configureEdge System.Action<ChartForgeX.Topology.TopologyEdge, TEdge?>? = null optional
Optionally maps product-neutral visual properties onto each created edge.
layoutMode ChartForgeX.Topology.TopologyLayoutMode = Layered optional
The deterministic topology layout applied by renderers.

Returns

TopologyChart A topology chart containing mapped copies of the source records.
Prepare 2 overloads
public PreparedVisual Prepare(VisualRenderContext context) #

Compiles a detached topology layout into the common static scene and native semantic snapshot.

Parameters

context ChartForgeX.Rendering.VisualRenderContext required
public PreparedVisual Prepare(VisualRenderContext context, TopologyRenderOptions? options) #

Compiles topology-specific layout, routing and presentation within the common frame and theme.

Parameters

context ChartForgeX.Rendering.VisualRenderContext required
Common logical size, frame, typography and theme.
options ChartForgeX.Topology.TopologyRenderOptions? required
Optional topology configuration; otherwise the chart's configured options apply.

Returns

PreparedVisual Detached static pixels, geometry and typed semantic handoff from one resolved diagram.
public PreparedVisual PrepareHierarchy(VisualRenderContext context, TopologyHierarchyView? view = null, TopologyRenderOptions? options = null) #

Prepares an explicit layered hierarchy view while retaining its complete raw source and authored relationships.

Parameters

context ChartForgeX.Rendering.VisualRenderContext required
The existing common frame, theme, fonts and logical size.
view ChartForgeX.Topology.TopologyHierarchyView? = null optional
Exact collapsed IDs, sibling tie order and native direction; null restores the complete hierarchy.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Existing topology presentation options. The caller's options are not changed.

Returns

PreparedVisual A detached native scene with source contributor facts and the matching immutable view.

Properties

public List<TopologyAlignment> Alignments { get; } #

Gets ordered row/column declarations for Layered placement or supplied Manual geometry validation.

public List<TopologyAnnotation> Annotations { get; } #

Gets diagram notes, separate from semantic nodes and edges.

public VisualAccessibility Accessibility { get; set; } #

Gets accessibility metadata shared by capable renderers and hosts.

public TopologyLabels Labels { get; set; } #

Gets the words the renderers write on their own: the name of an untitled diagram and its automatic description.

public TopologyRenderOptions? DefaultRenderOptions { get; set; } #

Gets or sets the render options used when a render, prepare, diagnostics, or export call passes none. A builder that returns a chart can attach the options the chart was designed for, so every host draws the same layout without passing them along separately. Options passed to a call replace these as a whole; the two are not merged.

public TopologyCrossingPaint? CrossingPaint { get; set; } #

Gets or sets captured orthogonal crossing paint; null preserves ordinary native paths exactly.

public TopologyGridLayout? GridLayout { get; set; } #

Gets or sets explicit automatic row limits for GroupGrid; null retains its incumbent layout and bytes.

public string? Id { get; set; } #

Gets or sets a stable chart identifier. Ids are trimmed and must not be empty.

public string? Title { get; set; } #

Gets or sets the chart title.

public string? Subtitle { get; set; } #

Gets or sets the chart subtitle.

public TopologyLayoutMode LayoutMode { get; set; } #

Gets or sets the deterministic layout mode.

public TopologyLayoutDirection LayoutDirection { get; set; } #

Gets or sets the deterministic layout flow direction.

public TopologyViewport Viewport { get; set; } #

Gets the viewport used by renderers.

public ChartMapViewport MapViewport { get; set; } #

Gets or sets the longitude/latitude window used by geographic topology layouts.

public List<TopologyGroup> Groups { get; } #

Gets the topology groups.

public List<TopologyNode> Nodes { get; } #

Gets the topology nodes.

public List<TopologyEdge> Edges { get; } #

Gets the topology edges.

public List<TopologyScenario> Scenarios { get; } #

Gets reusable scenario overlays that describe paths through the topology.

public TopologyLegend? Legend { get; set; } #

Gets or sets an optional legend.

public VisualTheme Theme { get; set; } #

Gets or sets an optional topology theme.

public ThemeMode ThemeMode { get; set; } #

Gets or sets the explicit shared theme mode.

public List<TopologyPathDecoration> PathDecorations { get; } #

Gets optional captured paths painted behind graph entities in the authored coordinate domain.

public TopologySiblingGrouping? SiblingGrouping { get; set; } #

Gets or sets the opt-in sibling grouping policy. Null, the default, keeps every node as authored.

Extension Methods

Accessibility 2 overloads
public static TopologyChart Accessibility(TopologyChart topologyChart, VisualAccessibility value) #

Sets TopologyChart.Accessibility: Gets accessibility metadata shared by capable renderers and hosts.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Accessibility.VisualAccessibility required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Topology.TopologyChart { Accessibility = value };    topologyChart.Accessibility(value);
public static TopologyChart Accessibility(TopologyChart topologyChart, Action<VisualAccessibility> configure) #

Configures a copy of TopologyChart.Accessibility (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets accessibility metadata shared by capable renderers and hosts.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
configure System.Action<ChartForgeX.Accessibility.VisualAccessibility> required
Configures the copy.

Returns

TopologyChart The same instance.
public static TopologyChart AddArtworkNode(TopologyChart chart, string id, string label, TopologyIconArtwork artwork, double x, double y, TopologyNodeKind kind = Generic, TopologyHealthStatus status = Unknown, string? groupId = null, string? subtitle = null, string? href = null, string? tooltip = null, double width = 120, double height = 64, string? symbol = null, string? cssClass = null, ChartColor? color = null, ChartColor? backgroundColor = null, TopologyNodeDisplayMode displayMode = Artwork) #

Adds a positioned node with node-specific artwork.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
id string required
The node id.
label string required
The node label.
artwork ChartForgeX.Topology.TopologyIconArtwork required
Trusted SVG or image artwork for SVG and HTML renderers.
x double required
The x-coordinate.
y double required
The y-coordinate.
kind ChartForgeX.Topology.TopologyNodeKind = Generic optional
The node kind.
status ChartForgeX.Topology.TopologyHealthStatus = Unknown optional
The node status.
groupId string? = null optional
The optional group id.
subtitle string? = null optional
The optional subtitle.
href string? = null optional
The optional href.
tooltip string? = null optional
The optional tooltip.
width double = 120 optional
The node width.
height double = 64 optional
The node height.
symbol string? = null optional
The optional short visual symbol shown by fallback renderers.
cssClass string? = null optional
The optional caller-provided CSS class tokens.
color ChartForgeX.Primitives.ChartColor? = null optional
The optional node accent color, independent from health status.
backgroundColor ChartForgeX.Primitives.ChartColor? = null optional
The optional node surface fill color.
displayMode ChartForgeX.Topology.TopologyNodeDisplayMode = Artwork optional
The display mode to apply with the artwork.

Returns

TopologyChart The current topology chart.
public static TopologyChart AddAutoArtworkNode(TopologyChart chart, string id, string label, TopologyIconArtwork artwork, TopologyNodeKind kind = Generic, TopologyHealthStatus status = Unknown, string? groupId = null, string? subtitle = null, string? href = null, string? tooltip = null, double width = 120, double height = 64, string? symbol = null, string? cssClass = null, ChartColor? color = null, ChartColor? backgroundColor = null, TopologyNodeDisplayMode displayMode = Artwork) #

Adds an auto-placed node with node-specific artwork.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
id string required
The node id.
label string required
The node label.
artwork ChartForgeX.Topology.TopologyIconArtwork required
Trusted SVG or image artwork for SVG and HTML renderers.
kind ChartForgeX.Topology.TopologyNodeKind = Generic optional
The node kind.
status ChartForgeX.Topology.TopologyHealthStatus = Unknown optional
The node status.
groupId string? = null optional
The optional group id.
subtitle string? = null optional
The optional subtitle.
href string? = null optional
The optional href.
tooltip string? = null optional
The optional tooltip.
width double = 120 optional
The node width.
height double = 64 optional
The node height.
symbol string? = null optional
The optional short visual symbol shown by fallback renderers.
cssClass string? = null optional
The optional caller-provided CSS class tokens.
color ChartForgeX.Primitives.ChartColor? = null optional
The optional node accent color, independent from health status.
backgroundColor ChartForgeX.Primitives.ChartColor? = null optional
The optional node surface fill color.
displayMode ChartForgeX.Topology.TopologyNodeDisplayMode = Artwork optional
The display mode to apply with the artwork.

Returns

TopologyChart The current topology chart.
public static TopologyChart AddAutoGroup(TopologyChart chart, string id, string label, TopologyHealthStatus status = Unknown, string? subtitle = null, string? href = null, string? tooltip = null, string? cssClass = null, string? symbol = null, ChartColor? color = null, string? iconId = null) #

Adds an auto-placed group to the topology chart. Deterministic layout modes assign the coordinates and size.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
id string required
The group id.
label string required
The group label.
status ChartForgeX.Topology.TopologyHealthStatus = Unknown optional
The group status.
subtitle string? = null optional
The optional subtitle.
href string? = null optional
The optional href.
tooltip string? = null optional
The optional tooltip.
cssClass string? = null optional
The optional caller-provided CSS class tokens.
symbol string? = null optional
The optional short visual symbol shown in the group header.
color ChartForgeX.Primitives.ChartColor? = null optional
The optional group accent color, independent from health status.
iconId string? = null optional
The optional reusable icon id from a topology icon catalog.

Returns

TopologyChart The current topology chart.
public static TopologyChart AddAutoIconNode(TopologyChart chart, string id, string label, string iconId, TopologyHealthStatus status = Unknown, string? groupId = null, string? subtitle = null, string? href = null, string? tooltip = null, double width = 120, double height = 64, string? cssClass = null, TopologyIconCatalog? catalog = null) #

Adds an auto-placed node from a reusable icon definition.

Parameters

chart ChartForgeX.Topology.TopologyChart required
id string required
label string required
iconId string required
status ChartForgeX.Topology.TopologyHealthStatus = Unknown optional
groupId string? = null optional
subtitle string? = null optional
href string? = null optional
tooltip string? = null optional
width double = 120 optional
height double = 64 optional
cssClass string? = null optional
catalog ChartForgeX.Topology.TopologyIconCatalog? = null optional
public static TopologyChart AddAutoNode(TopologyChart chart, string id, string label, TopologyNodeKind kind = Generic, TopologyHealthStatus status = Unknown, string? groupId = null, string? subtitle = null, string? href = null, string? tooltip = null, double width = 120, double height = 64, string? symbol = null, string? cssClass = null, ChartColor? color = null, string? iconId = null) #

Adds an auto-placed node to the topology chart. Deterministic layout modes assign the coordinates.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
id string required
The node id.
label string required
The node label.
kind ChartForgeX.Topology.TopologyNodeKind = Generic optional
The node kind.
status ChartForgeX.Topology.TopologyHealthStatus = Unknown optional
The node status.
groupId string? = null optional
The optional group id.
subtitle string? = null optional
The optional subtitle.
href string? = null optional
The optional href.
tooltip string? = null optional
The optional tooltip.
width double = 120 optional
The node width.
height double = 64 optional
The node height.
symbol string? = null optional
The optional short visual symbol shown inside the node icon.
cssClass string? = null optional
The optional caller-provided CSS class tokens.
color ChartForgeX.Primitives.ChartColor? = null optional
The optional node accent color, independent from health status.
iconId string? = null optional
The optional reusable icon id from a topology icon catalog.

Returns

TopologyChart The current topology chart.
public static TopologyChart AddEdge(TopologyChart chart, string id, string sourceNodeId, string targetNodeId, string? label = null, TopologyEdgeKind kind = Generic, TopologyHealthStatus status = Unknown, VisualLinkDirection direction = None, TopologyEdgeRouting routing = Orthogonal, string? secondaryLabel = null, string? href = null, string? tooltip = null, string? cssClass = null, string? tertiaryLabel = null, ChartColor? color = null) #

Adds an edge to the topology chart.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
id string required
The edge id.
sourceNodeId string required
The source node or group id; node ids take precedence.
targetNodeId string required
The target node or group id; node ids take precedence.
label string? = null optional
The optional edge label.
kind ChartForgeX.Topology.TopologyEdgeKind = Generic optional
The edge kind.
status ChartForgeX.Topology.TopologyHealthStatus = Unknown optional
The edge status.
direction ChartForgeX.Primitives.VisualLinkDirection = None optional
The edge direction.
routing ChartForgeX.Topology.TopologyEdgeRouting = Orthogonal optional
The edge routing.
secondaryLabel string? = null optional
The optional secondary label.
href string? = null optional
The optional href.
tooltip string? = null optional
The optional tooltip.
cssClass string? = null optional
The optional caller-provided CSS class tokens.
tertiaryLabel string? = null optional
The optional tertiary label.
color ChartForgeX.Primitives.ChartColor? = null optional
The optional edge color independent from health status.

Returns

TopologyChart The current topology chart.
public static TopologyChart AddEdgeChip(TopologyChart chart, string edgeId, string text, Tone? tone = null, string? iconId = null) #

Adds a small monospace value chip along an edge, such as PoE watts, replication cost or lag.

Parameters

chart ChartForgeX.Topology.TopologyChart required
edgeId string required
text string required
tone ChartForgeX.Tone? = null optional
iconId string? = null optional
public static TopologyChart AddEdgeStripe(TopologyChart chart, string edgeId, ChartColor color, string? label = null) #

Adds one colour band to a striped edge. Two or more stripes replace the single edge colour; labelled stripes get a legend entry.

Parameters

chart ChartForgeX.Topology.TopologyChart required
edgeId string required
color ChartForgeX.Primitives.ChartColor required
label string? = null optional
public static TopologyChart AddGroup(TopologyChart chart, string id, string label, double x, double y, double width, double height, TopologyHealthStatus status = Unknown, string? subtitle = null, string? href = null, string? tooltip = null, string? cssClass = null, string? symbol = null, ChartColor? color = null, string? iconId = null) #

Adds a group to the topology chart.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
id string required
The group id.
label string required
The group label.
x double required
The x-coordinate.
y double required
The y-coordinate.
width double required
The group width.
height double required
The group height.
status ChartForgeX.Topology.TopologyHealthStatus = Unknown optional
The group status.
subtitle string? = null optional
The optional subtitle.
href string? = null optional
The optional href.
tooltip string? = null optional
The optional tooltip.
cssClass string? = null optional
The optional caller-provided CSS class tokens.
symbol string? = null optional
The optional short visual symbol shown in the group header.
color ChartForgeX.Primitives.ChartColor? = null optional
The optional group accent color, independent from health status.
iconId string? = null optional
The optional reusable icon id from a topology icon catalog.

Returns

TopologyChart The current topology chart.
public static TopologyChart AddHierarchy(TopologyChart chart, IEnumerable<TopologyHierarchyItem> items, TopologyHierarchyOptions? options = null) #

Adds parent-child hierarchy items to a topology chart.

Parameters

chart ChartForgeX.Topology.TopologyChart required
items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyHierarchyItem> required
options ChartForgeX.Topology.TopologyHierarchyOptions? = null optional
public static TopologyChart AddIconNode(TopologyChart chart, string id, string label, string iconId, double x, double y, TopologyHealthStatus status = Unknown, string? groupId = null, string? subtitle = null, string? href = null, string? tooltip = null, double width = 120, double height = 64, string? cssClass = null, TopologyIconCatalog? catalog = null) #

Adds a positioned node from a reusable icon definition.

Parameters

chart ChartForgeX.Topology.TopologyChart required
id string required
label string required
iconId string required
x double required
y double required
status ChartForgeX.Topology.TopologyHealthStatus = Unknown optional
groupId string? = null optional
subtitle string? = null optional
href string? = null optional
tooltip string? = null optional
width double = 120 optional
height double = 64 optional
cssClass string? = null optional
catalog ChartForgeX.Topology.TopologyIconCatalog? = null optional
public static TopologyChart AddMindMap(TopologyChart chart, IEnumerable<TopologyHierarchyItem> items, TopologyMindMapOptions? options = null) #

Adds parent-child items as a centered mind map with balanced left and right branches.

Parameters

chart ChartForgeX.Topology.TopologyChart required
items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyHierarchyItem> required
options ChartForgeX.Topology.TopologyMindMapOptions? = null optional
public static TopologyChart AddNode(TopologyChart chart, string id, string label, double x, double y, TopologyNodeKind kind = Generic, TopologyHealthStatus status = Unknown, string? groupId = null, string? subtitle = null, string? href = null, string? tooltip = null, double width = 120, double height = 64, string? symbol = null, string? cssClass = null, ChartColor? color = null, string? iconId = null, ChartColor? backgroundColor = null) #

Adds a node to the topology chart.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
id string required
The node id.
label string required
The node label.
x double required
The x-coordinate.
y double required
The y-coordinate.
kind ChartForgeX.Topology.TopologyNodeKind = Generic optional
The node kind.
status ChartForgeX.Topology.TopologyHealthStatus = Unknown optional
The node status.
groupId string? = null optional
The optional group id.
subtitle string? = null optional
The optional subtitle.
href string? = null optional
The optional href.
tooltip string? = null optional
The optional tooltip.
width double = 120 optional
The node width.
height double = 64 optional
The node height.
symbol string? = null optional
The optional short visual symbol shown inside the node icon.
cssClass string? = null optional
The optional caller-provided CSS class tokens.
color ChartForgeX.Primitives.ChartColor? = null optional
The optional node accent color, independent from health status.
iconId string? = null optional
The optional reusable icon id from a topology icon catalog.
backgroundColor ChartForgeX.Primitives.ChartColor? = null optional
The optional node surface fill color.

Returns

TopologyChart The current topology chart.
public static TopologyChart AddNodeDetail(TopologyChart chart, string nodeId, string label, string value, TopologyHealthStatus? status = null, ChartColor? color = null, string? iconId = null) #

Adds a typed detail row to a card-like topology node.

Parameters

chart ChartForgeX.Topology.TopologyChart required
nodeId string required
label string required
value string required
status ChartForgeX.Topology.TopologyHealthStatus? = null optional
color ChartForgeX.Primitives.ChartColor? = null optional
iconId string? = null optional
public static TopologyChart AddNodePort(TopologyChart chart, string nodeId, string portId, TopologyEdgePort side, double offset = 0.5, string? label = null) #

Adds a named attachment port to a topology node.

Parameters

chart ChartForgeX.Topology.TopologyChart required
nodeId string required
portId string required
side ChartForgeX.Topology.TopologyEdgePort required
offset double = 0.5 optional
label string? = null optional
public static TopologyChart AddScenario(TopologyChart chart, string id, string label, Action<TopologyScenario>? configure = null) #

Adds an interactive scenario that references existing topology nodes and edges.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
id string required
The scenario id.
label string required
The scenario label.
configure System.Action<ChartForgeX.Topology.TopologyScenario>? = null optional
Optional scenario configuration.

Returns

TopologyChart The current topology chart.
public static TopologyChart AddTeam(TopologyChart chart, string teamId, string teamLabel, IEnumerable<TopologyTeamMember> members, TopologyTeamOptions? options = null) #

Adds a reusable team or org diagram to a topology chart.

Parameters

chart ChartForgeX.Topology.TopologyChart required
teamId string required
teamLabel string required
members System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyTeamMember> required
options ChartForgeX.Topology.TopologyTeamOptions? = null optional
public static TopologyChart Alignment(TopologyChart topologyChart, TopologyAlignment item) #

Adds an item to TopologyChart.Alignments: Gets ordered row/column declarations for Layered placement or supplied Manual geometry validation.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
item ChartForgeX.Topology.TopologyAlignment required
The item.

Returns

TopologyChart The same instance.
public static TopologyChart Alignments(TopologyChart topologyChart, IEnumerable<TopologyAlignment> items) #

Adds items to TopologyChart.Alignments: Gets ordered row/column declarations for Layered placement or supplied Manual geometry validation.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyAlignment> required
The items, in order.

Returns

TopologyChart The same instance.
public static TopologyChart Annotation(TopologyChart topologyChart, TopologyAnnotation item) #

Adds an item to TopologyChart.Annotations: Gets diagram notes, separate from semantic nodes and edges.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
item ChartForgeX.Topology.TopologyAnnotation required
The item.

Returns

TopologyChart The same instance.
public static TopologyChart Annotations(TopologyChart topologyChart, IEnumerable<TopologyAnnotation> items) #

Adds items to TopologyChart.Annotations: Gets diagram notes, separate from semantic nodes and edges.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyAnnotation> required
The items, in order.

Returns

TopologyChart The same instance.
public static TopologyChart ClearNodeArtwork(TopologyChart chart, string nodeId, bool resetArtworkDisplayMode = true) #

Removes node-specific artwork from an existing topology node.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
nodeId string required
The node id.
resetArtworkDisplayMode bool = true optional
Whether to clear an artwork-only display override so icon catalog display defaults can apply again.

Returns

TopologyChart The current topology chart.
public static TopologyChart CrossingPaint(TopologyChart topologyChart, TopologyCrossingPaint? value) #

Sets TopologyChart.CrossingPaint: Gets or sets captured orthogonal crossing paint; null preserves ordinary native paths exactly.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Topology.TopologyCrossingPaint? required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Topology.TopologyChart { CrossingPaint = value };    topologyChart.CrossingPaint(value);
DefaultRenderOptions 2 overloads
public static TopologyChart DefaultRenderOptions(TopologyChart topologyChart, TopologyRenderOptions? value) #

Sets TopologyChart.DefaultRenderOptions: Gets or sets the render options used when a render, prepare, diagnostics, or export call passes none. A builder that returns a chart can attach the options the chart was designed for, so every host draws the same layout without passing them along separately. Options passed to a call replace these as a whole; the two are not merged.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Topology.TopologyRenderOptions? required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Topology.TopologyChart { DefaultRenderOptions = value };    topologyChart.DefaultRenderOptions(value);
public static TopologyChart DefaultRenderOptions(TopologyChart topologyChart, Action<TopologyRenderOptions> configure) #

Configures a copy of TopologyChart.DefaultRenderOptions (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets or sets the render options used when a render, prepare, diagnostics, or export call passes none. A builder that returns a chart can attach the options the chart was designed for, so every host draws the same layout without passing them along separately. Options passed to a call replace these as a whole; the two are not merged.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
configure System.Action<ChartForgeX.Topology.TopologyRenderOptions> required
Configures the copy.

Returns

TopologyChart The same instance.
Edge 2 overloads
public static TopologyChart Edge(TopologyChart topologyChart, TopologyEdge item) #

Adds an item to TopologyChart.Edges: Gets the topology edges.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
item ChartForgeX.Topology.TopologyEdge required
The item.

Returns

TopologyChart The same instance.
public static TopologyChart Edge(TopologyChart topologyChart, Action<TopologyEdge> configure) #

Creates an item, configures it and adds it to TopologyChart.Edges: Gets the topology edges.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
configure System.Action<ChartForgeX.Topology.TopologyEdge> required
Configures the new item before it is added.

Returns

TopologyChart The same instance.
public static TopologyChart EdgeRouteBundle(TopologyChart chart, double centerLane, double spacing, params string[] edgeIds) #

Assigns centered orthogonal route lanes to a related set of edges.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
centerLane double required
The center lane offset in pixels.
spacing double required
The spacing between adjacent lanes in pixels.
edgeIds string[] required
The related edge ids in visual lane order.

Returns

TopologyChart The current topology chart.
public static TopologyChart Edges(TopologyChart topologyChart, IEnumerable<TopologyEdge> items) #

Adds items to TopologyChart.Edges: Gets the topology edges.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyEdge> required
The items, in order.

Returns

TopologyChart The same instance.
public static TopologyChart EdgeStroke(TopologyChart chart, string edgeId, double? width = null, double? opacity = null, params double[] dashPattern) #

Applies edge-specific stroke width, opacity, and an optional alternating dash/gap pattern.

Parameters

chart ChartForgeX.Topology.TopologyChart required
edgeId string required
width double? = null optional
opacity double? = null optional
dashPattern double[] required
public static TopologyChart EdgeWaypoints(TopologyChart chart, string edgeId, params ChartPoint[] waypoints) #

Sets explicit route bend points on an edge.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
edgeId string required
The edge id.
waypoints ChartForgeX.Primitives.ChartPoint[] required
The route bend points.

Returns

TopologyChart The current topology chart.
public static RasterFontInfo GetRasterFontInfo(TopologyChart chart) #

Resolves the host font used for PNG text and opt-in installed-font layout measurement. SVG viewers resolve the theme font family independently and may choose a different face.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology whose theme supplies the font family.

Returns

RasterFontInfo The resolved outline font or built-in fallback information.
public static TopologyChart GridLayout(TopologyChart topologyChart, TopologyGridLayout? value) #

Sets TopologyChart.GridLayout: Gets or sets explicit automatic row limits for GroupGrid; null retains its incumbent layout and bytes.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Topology.TopologyGridLayout? required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Topology.TopologyChart { GridLayout = value };    topologyChart.GridLayout(value);
Group 2 overloads
public static TopologyChart Group(TopologyChart topologyChart, TopologyGroup item) #

Adds an item to TopologyChart.Groups: Gets the topology groups.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
item ChartForgeX.Topology.TopologyGroup required
The item.

Returns

TopologyChart The same instance.
public static TopologyChart Group(TopologyChart topologyChart, Action<TopologyGroup> configure) #

Creates an item, configures it and adds it to TopologyChart.Groups: Gets the topology groups.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
configure System.Action<ChartForgeX.Topology.TopologyGroup> required
Configures the new item before it is added.

Returns

TopologyChart The same instance.
public static TopologyChart GroupIcon(TopologyChart chart, string groupId, string iconId, TopologyIconCatalog? catalog = null) #

Applies a reusable icon definition to a group.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
groupId string required
The group id.
iconId string required
The icon id, for example microsoft-ad:site.
catalog ChartForgeX.Topology.TopologyIconCatalog? = null optional
Optional icon catalog. When omitted, built-in packs are used.

Returns

TopologyChart The current topology chart.
public static TopologyChart Groups(TopologyChart topologyChart, IEnumerable<TopologyGroup> items) #

Adds items to TopologyChart.Groups: Gets the topology groups.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyGroup> required
The items, in order.

Returns

TopologyChart The same instance.
public static TopologyChart Id(TopologyChart topologyChart, string? value) #

Sets TopologyChart.Id: Gets or sets a stable chart identifier. Ids are trimmed and must not be empty.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value string? required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                     // C# fluent
new global::ChartForgeX.Topology.TopologyChart { Id = value };    topologyChart.Id(value);
Labels 2 overloads
public static TopologyChart Labels(TopologyChart topologyChart, TopologyLabels value) #

Sets TopologyChart.Labels: Gets the words the renderers write on their own: the name of an untitled diagram and its automatic description.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Topology.TopologyLabels required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ChartForgeX.Topology.TopologyChart { Labels = value };    topologyChart.Labels(value);
public static TopologyChart Labels(TopologyChart topologyChart, Action<TopologyLabels> configure) #

Configures a copy of TopologyChart.Labels (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets the words the renderers write on their own: the name of an untitled diagram and its automatic description.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
configure System.Action<ChartForgeX.Topology.TopologyLabels> required
Configures the copy.

Returns

TopologyChart The same instance.
public static TopologyChart LayoutDirection(TopologyChart topologyChart, TopologyLayoutDirection value) #

Sets TopologyChart.LayoutDirection: Gets or sets the deterministic layout flow direction.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Topology.TopologyLayoutDirection required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Topology.TopologyChart { LayoutDirection = value };    topologyChart.LayoutDirection(value);
public static TopologyChart LayoutMode(TopologyChart topologyChart, TopologyLayoutMode value) #

Sets TopologyChart.LayoutMode: Gets or sets the deterministic layout mode.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Topology.TopologyLayoutMode required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Topology.TopologyChart { LayoutMode = value };    topologyChart.LayoutMode(value);
Legend 2 overloads
public static TopologyChart Legend(TopologyChart topologyChart, TopologyLegend? value) #

Sets TopologyChart.Legend: Gets or sets an optional legend.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Topology.TopologyLegend? required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ChartForgeX.Topology.TopologyChart { Legend = value };    topologyChart.Legend(value);
public static TopologyChart Legend(TopologyChart topologyChart, Action<TopologyLegend> configure) #

Configures TopologyChart.Legend in place (creating it when not set): Gets or sets an optional legend.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
configure System.Action<ChartForgeX.Topology.TopologyLegend> required
Configures the value.

Returns

TopologyChart The same instance.
public static TopologyChart MapViewport(TopologyChart topologyChart, ChartMapViewport value) #

Sets TopologyChart.MapViewport: Gets or sets the longitude/latitude window used by geographic topology layouts.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Core.ChartMapViewport required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Topology.TopologyChart { MapViewport = value };    topologyChart.MapViewport(value);
Node 2 overloads
public static TopologyChart Node(TopologyChart topologyChart, TopologyNode item) #

Adds an item to TopologyChart.Nodes: Gets the topology nodes.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
item ChartForgeX.Topology.TopologyNode required
The item.

Returns

TopologyChart The same instance.
public static TopologyChart Node(TopologyChart topologyChart, Action<TopologyNode> configure) #

Creates an item, configures it and adds it to TopologyChart.Nodes: Gets the topology nodes.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
configure System.Action<ChartForgeX.Topology.TopologyNode> required
Configures the new item before it is added.

Returns

TopologyChart The same instance.
public static TopologyChart NodeArtwork(TopologyChart chart, string nodeId, TopologyIconArtwork artwork, TopologyNodeDisplayMode displayMode = Artwork) #

Applies node-specific artwork directly to an existing topology node.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
nodeId string required
The node id.
artwork ChartForgeX.Topology.TopologyIconArtwork required
Trusted SVG or image artwork for SVG and HTML renderers.
displayMode ChartForgeX.Topology.TopologyNodeDisplayMode = Artwork optional
The display mode to apply with the artwork.

Returns

TopologyChart The current topology chart.
public static TopologyChart NodeIcon(TopologyChart chart, string nodeId, string iconId, TopologyIconCatalog? catalog = null) #

Applies a reusable icon definition to a node.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
nodeId string required
The node id.
iconId string required
The icon id, for example network:switch.
catalog ChartForgeX.Topology.TopologyIconCatalog? = null optional
Optional icon catalog. When omitted, built-in packs are used.

Returns

TopologyChart The current topology chart.
public static TopologyChart Nodes(TopologyChart topologyChart, IEnumerable<TopologyNode> items) #

Adds items to TopologyChart.Nodes: Gets the topology nodes.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyNode> required
The items, in order.

Returns

TopologyChart The same instance.
public static TopologyChart NodesOfKindIcon(TopologyChart chart, TopologyNodeKind kind, string iconId, TopologyIconCatalog? catalog = null) #

Applies a reusable icon definition to all nodes of a kind.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
kind ChartForgeX.Topology.TopologyNodeKind required
The node kind to update.
iconId string required
The icon id, for example common:certificate.
catalog ChartForgeX.Topology.TopologyIconCatalog? = null optional
Optional icon catalog. When omitted, built-in packs are used.

Returns

TopologyChart The current topology chart.
public static TopologyChart NodesOfKindStyle(TopologyChart chart, TopologyNodeKind kind, ChartColor? color = null, ChartColor? backgroundColor = null, string? iconId = null, TopologyIconCatalog? catalog = null) #

Sets reusable node styling and optional icon assignment for all nodes of a kind in one pass.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
kind ChartForgeX.Topology.TopologyNodeKind required
The node kind to update.
color ChartForgeX.Primitives.ChartColor? = null optional
The optional node accent color.
backgroundColor ChartForgeX.Primitives.ChartColor? = null optional
The optional node surface fill color.
iconId string? = null optional
The optional icon id, for example common:certificate.
catalog ChartForgeX.Topology.TopologyIconCatalog? = null optional
Optional icon catalog. When omitted, built-in packs are used.

Returns

TopologyChart The current topology chart.
public static TopologyChart PathDecoration(TopologyChart topologyChart, TopologyPathDecoration item) #

Adds an item to TopologyChart.PathDecorations: Gets optional captured paths painted behind graph entities in the authored coordinate domain.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
item ChartForgeX.Topology.TopologyPathDecoration required
The item.

Returns

TopologyChart The same instance.
public static TopologyChart PathDecorations(TopologyChart topologyChart, IEnumerable<TopologyPathDecoration> items) #

Adds items to TopologyChart.PathDecorations: Gets optional captured paths painted behind graph entities in the authored coordinate domain.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyPathDecoration> required
The items, in order.

Returns

TopologyChart The same instance.
public static PreparedTopology Prepare(TopologyChart chart, TopologyRenderOptions? options = null) #

Validates and prepares a detached layout once for multiple exports and diagnostics. Use PreparedTopology.AssessReadability before fitting a dense layout into a small output.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
public static TopologyReport PrepareReport(TopologyChart chart, TopologyReportOptions? options = null) #

Creates readable detail pages using measured card capacity and stable group/input order. Internal relationships remain on their page; cross-page relationships are returned explicitly. This report reflows cards; use TopologyChartExtensions.Prepare when original geometry must be retained.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyReportOptions? = null optional
public static PreparedTopology PrepareScenarioStep(TopologyChart chart, string scenarioId, int stepIndex, TopologyRenderOptions? options = null) #

Prepares the topology with one scenario step highlighted and the rest of the diagram dimmed.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
scenarioId string required
The scenario id.
stepIndex int required
The zero-based step index.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options. The caller's instance is not modified.

Returns

PreparedTopology A prepared topology for SVG, PNG, or terminal output of that step.
public static TopologyChart ReciprocalEdgeRouteBundles(TopologyChart chart, double spacing = 18) #

Assigns centered orthogonal route lanes to reciprocal edge pairs that do not already have explicit lanes.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
spacing double = 18 optional
The spacing between adjacent lanes in pixels.

Returns

TopologyChart The current topology chart.
public static TopologyResolvedScenario ResolveScenario(TopologyChart chart, string scenarioId) #

Resolves a scenario against the topology, so each step knows its source, target, edge, label, and payload.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
scenarioId string required
The scenario id.

Returns

TopologyResolvedScenario The resolved scenario.

Exceptions

  • ArgumentException โ€“ The scenario does not exist or references missing nodes or edges.
public static void Save(TopologyChart chart, string path, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Saves the topology chart using the output path extension to choose SVG, HTML, PNG, or a still raster image format.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
path string required
The output path.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options for opaque raster formats.
public static void SaveApng(TopologyChart chart, string path, TopologyRenderOptions? options = null, TopologyMotionOptions? motion = null) #

Saves sampled topology motion as animated PNG.

Parameters

chart ChartForgeX.Topology.TopologyChart required
path string required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
motion ChartForgeX.Topology.TopologyMotionOptions? = null optional
public static void SaveBmp(TopologyChart chart, string path, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Saves the topology chart as BMP.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
path string required
The output path.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.
public static void SaveGif(TopologyChart chart, string path, TopologyRenderOptions? options = null, TopologyMotionOptions? motion = null) #

Saves sampled topology motion as GIF.

Parameters

chart ChartForgeX.Topology.TopologyChart required
path string required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
motion ChartForgeX.Topology.TopologyMotionOptions? = null optional
public static void SaveHtml(TopologyChart chart, string path, TopologyRenderOptions? options = null) #

Saves the topology chart as a complete HTML page.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
path string required
The output path.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
SaveInteractiveHtml 3 overloads
public static void SaveInteractiveHtml(TopologyChart chart, string path, TopologyRenderOptions? options = null) #

Saves a complete self-contained interactive topology HTML page.

Parameters

chart ChartForgeX.Topology.TopologyChart required
path string required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
public static void SaveInteractiveHtml(TopologyChart chart, string path, TopologyRenderOptions? options, Func<PreparedTopology, string> svgPresentation) #

Saves interactive controls around a trusted detached SVG presentation of the same topology.

Parameters

chart ChartForgeX.Topology.TopologyChart required
path string required
options ChartForgeX.Topology.TopologyRenderOptions? required
svgPresentation System.Func<ChartForgeX.Topology.PreparedTopology, string> required
public static void SaveInteractiveHtml(TopologyChart chart, string path, TopologyRenderOptions? options, Func<PreparedTopology, string>? svgPresentation = null, Action<HtmlChartLocalization>? configureLocalization = null) #

Saves a localized interactive page, optionally around a trusted detached SVG presentation.

Parameters

chart ChartForgeX.Topology.TopologyChart required
path string required
options ChartForgeX.Topology.TopologyRenderOptions? required
svgPresentation System.Func<ChartForgeX.Topology.PreparedTopology, string>? = null optional
configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization>? = null optional
public static void SavePng(TopologyChart chart, string path, TopologyRenderOptions? options = null) #

Saves the topology chart as PNG.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
path string required
The output path.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
public static void SavePpm(TopologyChart chart, string path, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Saves the topology chart as PPM.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
path string required
The output path.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.
SaveRasterImage 2 overloads
public static void SaveRasterImage(TopologyChart chart, string path, RasterImageFormat format, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Saves the topology chart as an opaque raster image file.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
path string required
The output path.
format ChartForgeX.Core.RasterImageFormat required
The raster image format.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.
public static void SaveRasterImage(TopologyChart chart, string path, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Saves the topology chart as an opaque raster image file using the output path extension to choose the format.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
path string required
The output path.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.
public static void SaveSvg(TopologyChart chart, string path, TopologyRenderOptions? options = null) #

Saves the topology chart as SVG.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
path string required
The output path.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
public static void SaveTiff(TopologyChart chart, string path, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Saves the topology chart as TIFF.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
path string required
The output path.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.
Scenario 2 overloads
public static TopologyChart Scenario(TopologyChart topologyChart, TopologyScenario item) #

Adds an item to TopologyChart.Scenarios: Gets reusable scenario overlays that describe paths through the topology.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
item ChartForgeX.Topology.TopologyScenario required
The item.

Returns

TopologyChart The same instance.
public static TopologyChart Scenario(TopologyChart topologyChart, Action<TopologyScenario> configure) #

Creates an item, configures it and adds it to TopologyChart.Scenarios: Gets reusable scenario overlays that describe paths through the topology.

Parameters

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

Returns

TopologyChart The same instance.
public static TopologyChart Scenarios(TopologyChart topologyChart, IEnumerable<TopologyScenario> items) #

Adds items to TopologyChart.Scenarios: Gets reusable scenario overlays that describe paths through the topology.

Parameters

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

Returns

TopologyChart The same instance.
SiblingGrouping 2 overloads
public static TopologyChart SiblingGrouping(TopologyChart topologyChart, TopologySiblingGrouping? value) #

Sets TopologyChart.SiblingGrouping: Gets or sets the opt-in sibling grouping policy. Null, the default, keeps every node as authored.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Topology.TopologySiblingGrouping? required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Topology.TopologyChart { SiblingGrouping = value };    topologyChart.SiblingGrouping(value);
public static TopologyChart SiblingGrouping(TopologyChart topologyChart, Action<TopologySiblingGrouping> configure) #

Configures a copy of TopologyChart.SiblingGrouping (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets or sets the opt-in sibling grouping policy. Null, the default, keeps every node as authored.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
configure System.Action<ChartForgeX.Topology.TopologySiblingGrouping> required
Configures the copy.

Returns

TopologyChart The same instance.
public static TopologyChart Subtitle(TopologyChart topologyChart, string? value) #

Sets TopologyChart.Subtitle: Gets or sets the chart subtitle.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value string? required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ChartForgeX.Topology.TopologyChart { Subtitle = value };    topologyChart.Subtitle(value);
Theme 2 overloads
public static TopologyChart Theme(TopologyChart chart, Action<VisualThemeBuilder> configure) #

Configures the current topology theme.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
configure System.Action<ChartForgeX.Themes.VisualThemeBuilder> required
The theme customization callback.

Returns

TopologyChart The current topology chart.
public static TopologyChart Theme(TopologyChart topologyChart, VisualTheme value) #

Sets TopologyChart.Theme: Gets or sets an optional topology theme.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Themes.VisualTheme required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ChartForgeX.Topology.TopologyChart { Theme = value };    topologyChart.Theme(value);
public static TopologyChart ThemeMode(TopologyChart topologyChart, ThemeMode value) #

Sets TopologyChart.ThemeMode: Gets or sets the explicit shared theme mode.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.ThemeMode required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ChartForgeX.Topology.TopologyChart { ThemeMode = value };    topologyChart.ThemeMode(value);
public static TopologyChart Title(TopologyChart topologyChart, string? value) #

Sets TopologyChart.Title: Gets or sets the chart title.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value string? required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ChartForgeX.Topology.TopologyChart { Title = value };    topologyChart.Title(value);
public static byte[] ToApng(TopologyChart chart, TopologyRenderOptions? options = null, TopologyMotionOptions? motion = null) #

Samples topology route motion into animated PNG bytes.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
motion ChartForgeX.Topology.TopologyMotionOptions? = null optional

Returns

byte[]
public static byte[] ToBmp(TopologyChart chart, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Renders the topology chart to BMP bytes.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.

Returns

byte[] A BMP image.
public static byte[] ToGif(TopologyChart chart, TopologyRenderOptions? options = null, TopologyMotionOptions? motion = null) #

Samples topology route motion into animated GIF bytes.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
motion ChartForgeX.Topology.TopologyMotionOptions? = null optional

Returns

byte[]
public static string ToGraphExplorerHtmlFragment(TopologyChart chart, Action<TopologyGraphSceneOptions>? configureScene = null, Action<HtmlGraphExplorerOptions>? configureHtml = null) #

Renders a topology chart as an embeddable graph explorer fragment by first projecting it into GraphScene.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The source topology chart.
configureScene System.Action<ChartForgeX.Interactivity.Html.TopologyGraphSceneOptions>? = null optional
Optional topology-to-graph projection configuration.
configureHtml System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null optional
Optional graph explorer HTML configuration.

Returns

string A self-contained HTML fragment.
public static string ToGraphExplorerHtmlPage(TopologyChart chart, Action<TopologyGraphSceneOptions>? configureScene = null, Action<HtmlGraphExplorerOptions>? configureHtml = null) #

Renders a topology chart through the graph explorer adapter by first projecting it into GraphScene.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The source topology chart.
configureScene System.Action<ChartForgeX.Interactivity.Html.TopologyGraphSceneOptions>? = null optional
Optional topology-to-graph projection configuration.
configureHtml System.Action<ChartForgeX.Interactivity.Html.HtmlGraphExplorerOptions>? = null optional
Optional graph explorer HTML configuration.

Returns

string A complete self-contained HTML document.
public static GraphScene ToGraphScene(TopologyChart chart, Action<TopologyGraphSceneOptions>? configure = null) #

Projects a topology chart into a host-neutral graph scene for large interactive exploration.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The source topology chart.
configure System.Action<ChartForgeX.Interactivity.Html.TopologyGraphSceneOptions>? = null optional
Optional bridge configuration callback.

Returns

GraphScene A graph scene that preserves topology ids, metadata, groups, and relationships.
public static string ToHtmlFragment(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders the topology chart to an HTML fragment.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.

Returns

string An embeddable HTML fragment.
public static string ToHtmlFragmentWithoutAssets(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders the topology chart to an HTML fragment without renderer-owned stylesheet or script assets.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.

Returns

string An embeddable HTML fragment that expects the host document to register topology HTML assets.
public static string ToHtmlPage(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders the topology chart to a complete HTML page.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.

Returns

string A complete HTML page.
ToInteractiveHtmlFragment 2 overloads
public static string ToInteractiveHtmlFragment(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders a self-contained interactive topology HTML fragment.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional

Returns

string
public static string ToInteractiveHtmlFragment(TopologyChart chart, TopologyRenderOptions? options, Action<HtmlChartLocalization> configureLocalization) #

Renders an interactive fragment with localized control messages.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? required
configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization> required

Returns

string
ToInteractiveHtmlFragmentWithoutAssets 2 overloads
public static string ToInteractiveHtmlFragmentWithoutAssets(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders interactive topology markup without renderer-owned assets.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional

Returns

string
public static string ToInteractiveHtmlFragmentWithoutAssets(TopologyChart chart, TopologyRenderOptions? options, Action<HtmlChartLocalization> configureLocalization) #

Renders localized controls without renderer-owned stylesheet or script assets.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? required
configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization> required

Returns

string
ToInteractiveHtmlPage 3 overloads
public static string ToInteractiveHtmlPage(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders a complete self-contained interactive topology HTML page.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional

Returns

string
public static string ToInteractiveHtmlPage(TopologyChart chart, TopologyRenderOptions? options, Func<PreparedTopology, string> svgPresentation) #

Renders controls around trusted SVG created from the adapter's detached interactive topology.

Parameters

chart ChartForgeX.Topology.TopologyChart required
options ChartForgeX.Topology.TopologyRenderOptions? required
svgPresentation System.Func<ChartForgeX.Topology.PreparedTopology, string> required

Returns

string
public static string ToInteractiveHtmlPage(TopologyChart chart, TopologyRenderOptions? options, Func<PreparedTopology, string>? svgPresentation = null, Action<HtmlChartLocalization>? configureLocalization = null) #

Renders a localized interactive page, optionally around a trusted detached SVG presentation.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The source topology.
options ChartForgeX.Topology.TopologyRenderOptions? required
Native render options, or null for the chart defaults.
svgPresentation System.Func<ChartForgeX.Topology.PreparedTopology, string>? = null optional
Optional producer for the adapter's detached prepared topology.
configureLocalization System.Action<ChartForgeX.Interactivity.Html.HtmlChartLocalization>? = null optional
Optional control-message configuration; authored facts remain unchanged.

Returns

string
public static byte[] ToPng(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders the topology chart to PNG bytes.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.

Returns

byte[] A PNG image.
public static byte[] ToPpm(TopologyChart chart, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Renders the topology chart to PPM bytes.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.

Returns

byte[] A PPM image.
public static byte[] ToRasterImage(TopologyChart chart, RasterImageFormat format, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Renders the topology chart to opaque raster image bytes.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
format ChartForgeX.Core.RasterImageFormat required
The raster image format.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.

Returns

byte[] Encoded raster image bytes.
public static RgbaImage ToRgbaImage(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders a topology chart directly to an in-memory RGBA image without encoding it.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart to render.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.

Returns

RgbaImage The rendered RGBA image.
public static VisualStory ToScenarioStory(TopologyChart chart, string scenarioId, TopologyScenarioStoryOptions? options = null) #

Builds a visual story with one scene per scenario step.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
scenarioId string required
The scenario id.
options ChartForgeX.Topology.TopologyScenarioStoryOptions? = null optional
Optional story options.

Returns

VisualStory A visual story whose chapters are the scenario steps.
public static SequenceArtifact ToSequenceArtifact(TopologyChart chart, string scenarioId) #

Projects a scenario into the matching sequence diagram, drawn in the topology's visual language: participants are node cards (icon, subtitle, status), groups become participant bands, messages use the topology's neutral edge color with label pills, replies are dashed, and failed calls take the critical status color.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
scenarioId string required
The scenario id.

Returns

SequenceArtifact A sequence artifact whose messages carry TopologyChartExtensions.ScenarioStepMetadataKey.
ToSvg 2 overloads
public static string ToSvg(TopologyChart chart, TopologyRenderOptions? options = null) #

Renders the topology chart to SVG.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.

Returns

string Complete SVG markup.
public static string ToSvg(TopologyChart chart, string idScope, TopologyRenderOptions? options = null) #

Renders the topology chart to SVG with every SVG id scoped, so several renders of the same chart can be embedded in one document (see TopologyRenderOptions.IdScope).

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
idScope string required
A caller-provided scope put in front of every SVG id.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options; null uses the options carried by the chart. They are not modified.

Returns

string Complete SVG markup.
public static byte[] ToTiff(TopologyChart chart, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Renders the topology chart to TIFF bytes.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.

Returns

byte[] A TIFF image.
public static VisualArtifact ToVisualArtifact(TopologyChart topology, VisualArtifactSourceLanguage sourceLanguage = Native) #

Wraps a topology diagram in a host-inspectable visual artifact envelope.

Parameters

topology ChartForgeX.Topology.TopologyChart required
sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native optional
public static TopologyChart UpdateEdge(TopologyChart chart, string edgeId, Action<TopologyEdge> configure) #

Configures the edge with the given id.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The chart.
edgeId string required
The edge id.
configure System.Action<ChartForgeX.Topology.TopologyEdge> required
Configures the edge in place.

Returns

TopologyChart The same chart.

Exceptions

  • ArgumentException โ€“ No edge has the id.
public static TopologyChart UpdateEdges(TopologyChart chart, TopologyEdgeKind kind, Action<TopologyEdge> configure) #

Configures every edge of the given kind.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The chart.
kind ChartForgeX.Topology.TopologyEdgeKind required
The edge kind to match.
configure System.Action<ChartForgeX.Topology.TopologyEdge> required
Configures each matching edge in place.

Returns

TopologyChart The same chart.
public static TopologyChart UpdateGroup(TopologyChart chart, string groupId, Action<TopologyGroup> configure) #

Configures the group with the given id.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The chart.
groupId string required
The group id.
configure System.Action<ChartForgeX.Topology.TopologyGroup> required
Configures the group in place.

Returns

TopologyChart The same chart.

Exceptions

  • ArgumentException โ€“ No group has the id.
public static TopologyChart UpdateNode(TopologyChart chart, string nodeId, Action<TopologyNode> configure) #

Configures the node with the given id.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The chart.
nodeId string required
The node id.
configure System.Action<ChartForgeX.Topology.TopologyNode> required
Configures the node in place.

Returns

TopologyChart The same chart.

Exceptions

  • ArgumentException โ€“ No node has the id.
public static TopologyChart UpdateNodes(TopologyChart chart, TopologyNodeKind kind, Action<TopologyNode> configure) #

Configures every node of the given kind.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The chart.
kind ChartForgeX.Topology.TopologyNodeKind required
The node kind to match.
configure System.Action<ChartForgeX.Topology.TopologyNode> required
Configures each matching node in place.

Returns

TopologyChart The same chart.
Viewport 2 overloads
public static TopologyChart Viewport(TopologyChart topologyChart, TopologyViewport value) #

Sets TopologyChart.Viewport: Gets the viewport used by renderers.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
value ChartForgeX.Topology.TopologyViewport required
The value.

Returns

TopologyChart The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ChartForgeX.Topology.TopologyChart { Viewport = value };    topologyChart.Viewport(value);
public static TopologyChart Viewport(TopologyChart topologyChart, Action<TopologyViewport> configure) #

Configures TopologyChart.Viewport in place (creating it when not set): Gets the viewport used by renderers.

Parameters

topologyChart ChartForgeX.Topology.TopologyChart required
The instance.
configure System.Action<ChartForgeX.Topology.TopologyViewport> required
Configures the value.

Returns

TopologyChart The same instance.
WithMotion 2 overloads
public static TopologyMotionPresentation WithMotion(TopologyChart chart, TopologyMotionOptions motion, TopologyRenderOptions? options = null) #

Prepares one detached native topology and adds explicit motion policy.

Parameters

chart ChartForgeX.Topology.TopologyChart required
motion ChartForgeX.Topology.TopologyMotionOptions required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
public static TopologyMotionPresentation WithMotion(TopologyChart chart, TopologyMotionOptions motion, TopologyRenderOptions? options, string? preferredScenarioId) #

Prepares motion with a preferred route scenario independently of static highlighting.

Parameters

chart ChartForgeX.Topology.TopologyChart required
motion ChartForgeX.Topology.TopologyMotionOptions required
options ChartForgeX.Topology.TopologyRenderOptions? required
preferredScenarioId string? required
public static void WriteApng(TopologyChart chart, Stream stream, TopologyRenderOptions? options = null, TopologyMotionOptions? motion = null) #

Writes sampled topology motion to an animated PNG stream.

Parameters

chart ChartForgeX.Topology.TopologyChart required
stream System.IO.Stream required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
motion ChartForgeX.Topology.TopologyMotionOptions? = null optional
public static void WriteBmp(TopologyChart chart, Stream stream, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Writes the topology chart to a BMP stream.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
stream System.IO.Stream required
The destination stream.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.
public static void WriteGif(TopologyChart chart, Stream stream, TopologyRenderOptions? options = null, TopologyMotionOptions? motion = null) #

Writes sampled topology motion to a GIF stream.

Parameters

chart ChartForgeX.Topology.TopologyChart required
stream System.IO.Stream required
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
motion ChartForgeX.Topology.TopologyMotionOptions? = null optional
public static void WritePpm(TopologyChart chart, Stream stream, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Writes the topology chart to a PPM stream.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
stream System.IO.Stream required
The destination stream.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.
public static void WriteRasterImage(TopologyChart chart, Stream stream, RasterImageFormat format, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Writes the topology chart to an opaque raster image stream.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
stream System.IO.Stream required
The destination stream.
format ChartForgeX.Core.RasterImageFormat required
The raster image format.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.
public static void WriteTiff(TopologyChart chart, Stream stream, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #

Writes the topology chart to a TIFF stream.

Parameters

chart ChartForgeX.Topology.TopologyChart required
The topology chart.
stream System.IO.Stream required
The destination stream.
options ChartForgeX.Topology.TopologyRenderOptions? = null optional
Optional render options.
imageOptions ChartForgeX.Core.RasterImageOptions? = null optional
Optional raster export options.