Skip to content
ChartForgeX
Class

TopologyChartExtensions

ChartForgeX.Topology

Namespace
ChartForgeX.Topology
Assembly
ChartForgeX
Modifiers
static

Provides convenience rendering and export methods for topology charts.

Inheritance

  • object
  • TopologyChartExtensions

Methods

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 TopologyScenario AddEdgeStep(TopologyScenario scenario, string edgeId, string? label = null, string? description = null, Action<TopologyScenarioStep>? configure = null) #

Adds a scenario segment that references an existing topology edge.

Parameters

scenario ChartForgeX.Topology.TopologyScenario required
The topology scenario.
edgeId string required
The edge id.
label string? = null optional
The optional segment label.
description string? = null optional
The optional segment description.
configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null optional
Optional step configuration.

Returns

TopologyScenario The current scenario.
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 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 TopologyScenario AddMessageStep(TopologyScenario scenario, string edgeId, TopologyScenarioInteraction interaction, string? label = null, bool reverse = false, Action<TopologyScenarioStep>? configure = null) #

Adds a request, message, response, or failure that travels over an existing topology edge.

Parameters

scenario ChartForgeX.Topology.TopologyScenario required
The topology scenario.
edgeId string required
The edge the step travels over.
interaction ChartForgeX.Topology.TopologyScenarioInteraction required
What happens on the edge.
label string? = null optional
The optional step label, such as POST /notes or 201 Created.
reverse bool = false optional
Whether the step travels from the edge target to the edge source.
configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null optional
Optional step configuration.

Returns

TopologyScenario The current scenario.
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 TopologyScenario AddNodeStep(TopologyScenario scenario, string nodeId, string? label = null, string? description = null, Action<TopologyScenarioStep>? configure = null) #

Adds a scenario hop that references an existing topology node.

Parameters

scenario ChartForgeX.Topology.TopologyScenario required
The topology scenario.
nodeId string required
The node id.
label string? = null optional
The optional hop label.
description string? = null optional
The optional hop description.
configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null optional
Optional step configuration.

Returns

TopologyScenario The current scenario.
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 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 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 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 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.
Metadata 2 overloads
public static TopologyScenario Metadata(TopologyScenario scenario, string key, string? value) #

Adds host-readable metadata to a topology scenario.

Parameters

scenario ChartForgeX.Topology.TopologyScenario required
The topology scenario.
key string required
The metadata key.
value string? required
The metadata value.

Returns

TopologyScenario The current scenario.
public static TopologyScenarioStep Metadata(TopologyScenarioStep step, string key, string? value) #

Adds host-readable metadata to a topology scenario step.

Parameters

step ChartForgeX.Topology.TopologyScenarioStep required
The topology scenario step.
key string required
The metadata key.
value string? required
The metadata value.

Returns

TopologyScenarioStep The current scenario step.
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 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 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 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 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.
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.
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 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 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.
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 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 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.
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 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.

Fields

public const string ScenarioStepMetadataKey #

Metadata key that links a sequence message to the scenario step it was projected from.

Value: cfx.scenario.step