TopologyChartExtensions
ChartForgeX.Topology
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
- The topology chart.
- id string
- The node id.
- label string
- The node label.
- artwork ChartForgeX.Topology.TopologyIconArtwork
- Trusted SVG or image artwork for SVG and HTML renderers.
- x double
- The x-coordinate.
- y double
- The y-coordinate.
- kind ChartForgeX.Topology.TopologyNodeKind = Generic
- The node kind.
- status ChartForgeX.Topology.TopologyHealthStatus = Unknown
- The node status.
- groupId string? = null
- The optional group id.
- subtitle string? = null
- The optional subtitle.
- href string? = null
- The optional href.
- tooltip string? = null
- The optional tooltip.
- width double = 120
- The node width.
- height double = 64
- The node height.
- symbol string? = null
- The optional short visual symbol shown by fallback renderers.
- cssClass string? = null
- The optional caller-provided CSS class tokens.
- color ChartForgeX.Primitives.ChartColor? = null
- The optional node accent color, independent from health status.
- backgroundColor ChartForgeX.Primitives.ChartColor? = null
- The optional node surface fill color.
- displayMode ChartForgeX.Topology.TopologyNodeDisplayMode = Artwork
- The display mode to apply with the artwork.
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
- The topology chart.
- id string
- The node id.
- label string
- The node label.
- artwork ChartForgeX.Topology.TopologyIconArtwork
- Trusted SVG or image artwork for SVG and HTML renderers.
- kind ChartForgeX.Topology.TopologyNodeKind = Generic
- The node kind.
- status ChartForgeX.Topology.TopologyHealthStatus = Unknown
- The node status.
- groupId string? = null
- The optional group id.
- subtitle string? = null
- The optional subtitle.
- href string? = null
- The optional href.
- tooltip string? = null
- The optional tooltip.
- width double = 120
- The node width.
- height double = 64
- The node height.
- symbol string? = null
- The optional short visual symbol shown by fallback renderers.
- cssClass string? = null
- The optional caller-provided CSS class tokens.
- color ChartForgeX.Primitives.ChartColor? = null
- The optional node accent color, independent from health status.
- backgroundColor ChartForgeX.Primitives.ChartColor? = null
- The optional node surface fill color.
- displayMode ChartForgeX.Topology.TopologyNodeDisplayMode = Artwork
- The display mode to apply with the artwork.
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
- The topology chart.
- id string
- The group id.
- label string
- The group label.
- status ChartForgeX.Topology.TopologyHealthStatus = Unknown
- The group status.
- subtitle string? = null
- The optional subtitle.
- href string? = null
- The optional href.
- tooltip string? = null
- The optional tooltip.
- cssClass string? = null
- The optional caller-provided CSS class tokens.
- symbol string? = null
- The optional short visual symbol shown in the group header.
- color ChartForgeX.Primitives.ChartColor? = null
- The optional group accent color, independent from health status.
- iconId string? = null
- The optional reusable icon id from a topology icon catalog.
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
- id string
- label string
- iconId string
- status ChartForgeX.Topology.TopologyHealthStatus = Unknown
- groupId string? = null
- subtitle string? = null
- href string? = null
- tooltip string? = null
- width double = 120
- height double = 64
- cssClass string? = null
- catalog ChartForgeX.Topology.TopologyIconCatalog? = null
Returns
TopologyChartpublic 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
- The topology chart.
- id string
- The node id.
- label string
- The node label.
- kind ChartForgeX.Topology.TopologyNodeKind = Generic
- The node kind.
- status ChartForgeX.Topology.TopologyHealthStatus = Unknown
- The node status.
- groupId string? = null
- The optional group id.
- subtitle string? = null
- The optional subtitle.
- href string? = null
- The optional href.
- tooltip string? = null
- The optional tooltip.
- width double = 120
- The node width.
- height double = 64
- The node height.
- symbol string? = null
- The optional short visual symbol shown inside the node icon.
- cssClass string? = null
- The optional caller-provided CSS class tokens.
- color ChartForgeX.Primitives.ChartColor? = null
- The optional node accent color, independent from health status.
- iconId string? = null
- The optional reusable icon id from a topology icon catalog.
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
- The topology chart.
- id string
- The edge id.
- sourceNodeId string
- The source node or group id; node ids take precedence.
- targetNodeId string
- The target node or group id; node ids take precedence.
- label string? = null
- The optional edge label.
- kind ChartForgeX.Topology.TopologyEdgeKind = Generic
- The edge kind.
- status ChartForgeX.Topology.TopologyHealthStatus = Unknown
- The edge status.
- direction ChartForgeX.Primitives.VisualLinkDirection = None
- The edge direction.
- routing ChartForgeX.Topology.TopologyEdgeRouting = Orthogonal
- The edge routing.
- secondaryLabel string? = null
- The optional secondary label.
- href string? = null
- The optional href.
- tooltip string? = null
- The optional tooltip.
- cssClass string? = null
- The optional caller-provided CSS class tokens.
- tertiaryLabel string? = null
- The optional tertiary label.
- color ChartForgeX.Primitives.ChartColor? = null
- The optional edge color independent from health status.
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
- edgeId string
- text string
- tone ChartForgeX.Tone? = null
- iconId string? = null
Returns
TopologyChartpublic 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
- The topology scenario.
- edgeId string
- The edge id.
- label string? = null
- The optional segment label.
- description string? = null
- The optional segment description.
- configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null
- Optional step configuration.
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
- edgeId string
- color ChartForgeX.Primitives.ChartColor
- label string? = null
Returns
TopologyChartpublic 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
- The topology chart.
- id string
- The group id.
- label string
- The group label.
- x double
- The x-coordinate.
- y double
- The y-coordinate.
- width double
- The group width.
- height double
- The group height.
- status ChartForgeX.Topology.TopologyHealthStatus = Unknown
- The group status.
- subtitle string? = null
- The optional subtitle.
- href string? = null
- The optional href.
- tooltip string? = null
- The optional tooltip.
- cssClass string? = null
- The optional caller-provided CSS class tokens.
- symbol string? = null
- The optional short visual symbol shown in the group header.
- color ChartForgeX.Primitives.ChartColor? = null
- The optional group accent color, independent from health status.
- iconId string? = null
- The optional reusable icon id from a topology icon catalog.
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
- id string
- label string
- iconId string
- x double
- y double
- status ChartForgeX.Topology.TopologyHealthStatus = Unknown
- groupId string? = null
- subtitle string? = null
- href string? = null
- tooltip string? = null
- width double = 120
- height double = 64
- cssClass string? = null
- catalog ChartForgeX.Topology.TopologyIconCatalog? = null
Returns
TopologyChartpublic 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
- The topology scenario.
- edgeId string
- The edge the step travels over.
- interaction ChartForgeX.Topology.TopologyScenarioInteraction
- What happens on the edge.
- label string? = null
- The optional step label, such as POST /notes or 201 Created.
- reverse bool = false
- Whether the step travels from the edge target to the edge source.
- configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null
- Optional step configuration.
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
- The topology chart.
- id string
- The node id.
- label string
- The node label.
- x double
- The x-coordinate.
- y double
- The y-coordinate.
- kind ChartForgeX.Topology.TopologyNodeKind = Generic
- The node kind.
- status ChartForgeX.Topology.TopologyHealthStatus = Unknown
- The node status.
- groupId string? = null
- The optional group id.
- subtitle string? = null
- The optional subtitle.
- href string? = null
- The optional href.
- tooltip string? = null
- The optional tooltip.
- width double = 120
- The node width.
- height double = 64
- The node height.
- symbol string? = null
- The optional short visual symbol shown inside the node icon.
- cssClass string? = null
- The optional caller-provided CSS class tokens.
- color ChartForgeX.Primitives.ChartColor? = null
- The optional node accent color, independent from health status.
- iconId string? = null
- The optional reusable icon id from a topology icon catalog.
- backgroundColor ChartForgeX.Primitives.ChartColor? = null
- The optional node surface fill color.
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
- nodeId string
- label string
- value string
- status ChartForgeX.Topology.TopologyHealthStatus? = null
- color ChartForgeX.Primitives.ChartColor? = null
- iconId string? = null
Returns
TopologyChartpublic 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
- nodeId string
- portId string
- side ChartForgeX.Topology.TopologyEdgePort
- offset double = 0.5
- label string? = null
Returns
TopologyChartpublic 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
- The topology scenario.
- nodeId string
- The node id.
- label string? = null
- The optional hop label.
- description string? = null
- The optional hop description.
- configure System.Action<ChartForgeX.Topology.TopologyScenarioStep>? = null
- Optional step configuration.
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
- The topology chart.
- id string
- The scenario id.
- label string
- The scenario label.
- configure System.Action<ChartForgeX.Topology.TopologyScenario>? = null
- Optional scenario configuration.
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
- The topology chart.
- nodeId string
- The node id.
- resetArtworkDisplayMode bool = true
- Whether to clear an artwork-only display override so icon catalog display defaults can apply again.
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
- The topology chart.
- centerLane double
- The center lane offset in pixels.
- spacing double
- The spacing between adjacent lanes in pixels.
- edgeIds string[]
- The related edge ids in visual lane order.
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
- edgeId string
- width double? = null
- opacity double? = null
- dashPattern double[]
Returns
TopologyChartpublic static TopologyChart EdgeWaypoints(TopologyChart chart, string edgeId, params ChartPoint[] waypoints) #Sets explicit route bend points on an edge.
Parameters
- chart ChartForgeX.Topology.TopologyChart
- The topology chart.
- edgeId string
- The edge id.
- waypoints ChartForgeX.Primitives.ChartPoint[]
- The route bend points.
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
- The topology whose theme supplies the font family.
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
- The topology chart.
- groupId string
- The group id.
- iconId string
- The icon id, for example microsoft-ad:site.
- catalog ChartForgeX.Topology.TopologyIconCatalog? = null
- Optional icon catalog. When omitted, built-in packs are used.
public static TopologyScenario Metadata(TopologyScenario scenario, string key, string? value) #Adds host-readable metadata to a topology scenario.
Parameters
- scenario ChartForgeX.Topology.TopologyScenario
- The topology scenario.
- key string
- The metadata key.
- value string?
- The metadata value.
public static TopologyScenarioStep Metadata(TopologyScenarioStep step, string key, string? value) #Adds host-readable metadata to a topology scenario step.
Parameters
- step ChartForgeX.Topology.TopologyScenarioStep
- The topology scenario step.
- key string
- The metadata key.
- value string?
- The metadata value.
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
- The topology chart.
- nodeId string
- The node id.
- artwork ChartForgeX.Topology.TopologyIconArtwork
- Trusted SVG or image artwork for SVG and HTML renderers.
- displayMode ChartForgeX.Topology.TopologyNodeDisplayMode = Artwork
- The display mode to apply with the artwork.
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
- The topology chart.
- nodeId string
- The node id.
- iconId string
- The icon id, for example network:switch.
- catalog ChartForgeX.Topology.TopologyIconCatalog? = null
- Optional icon catalog. When omitted, built-in packs are used.
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
- The topology chart.
- kind ChartForgeX.Topology.TopologyNodeKind
- The node kind to update.
- iconId string
- The icon id, for example common:certificate.
- catalog ChartForgeX.Topology.TopologyIconCatalog? = null
- Optional icon catalog. When omitted, built-in packs are used.
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
- The topology chart.
- kind ChartForgeX.Topology.TopologyNodeKind
- The node kind to update.
- color ChartForgeX.Primitives.ChartColor? = null
- The optional node accent color.
- backgroundColor ChartForgeX.Primitives.ChartColor? = null
- The optional node surface fill color.
- iconId string? = null
- The optional icon id, for example common:certificate.
- catalog ChartForgeX.Topology.TopologyIconCatalog? = null
- Optional icon catalog. When omitted, built-in packs are used.
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
- options ChartForgeX.Topology.TopologyRenderOptions? = null
Returns
PreparedTopologypublic 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
- options ChartForgeX.Topology.TopologyReportOptions? = null
Returns
TopologyReportpublic 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
- The topology chart.
- scenarioId string
- The scenario id.
- stepIndex int
- The zero-based step index.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options. The caller's instance is not modified.
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
- The topology chart.
- spacing double = 18
- The spacing between adjacent lanes in pixels.
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
- The topology chart.
- scenarioId string
- The scenario id.
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
- The topology chart.
- path string
- The output path.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The topology chart.
- path string
- The output path.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The topology chart.
- path string
- The output path.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- 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
- The topology chart.
- path string
- The output path.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- 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
- The topology chart.
- path string
- The output path.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
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
- The topology chart.
- path string
- The output path.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The topology chart.
- path string
- The output path.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The topology chart.
- path string
- The output path.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- 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
- The topology chart.
- path string
- The output path.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static TopologyChart Theme(TopologyChart chart, Action<VisualThemeBuilder> configure) #Configures the current topology theme.
Parameters
- chart ChartForgeX.Topology.TopologyChart
- The topology chart.
- configure System.Action<ChartForgeX.Themes.VisualThemeBuilder>
- The theme customization callback.
public static byte[] ToBmp(TopologyChart chart, TopologyRenderOptions? options = null, RasterImageOptions? imageOptions = null) #Renders the topology chart to BMP bytes.
Parameters
- chart ChartForgeX.Topology.TopologyChart
- The topology chart.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The topology chart.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- 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
- The topology chart.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- 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
- The topology chart.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- 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
- The topology chart.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- 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
- The topology chart.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The topology chart.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The topology chart to render.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
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
- The topology chart.
- scenarioId string
- The scenario id.
Returns
SequenceArtifact A sequence artifact whose messages carry TopologyChartExtensions.ScenarioStepMetadataKey.public static string ToSvg(TopologyChart chart, TopologyRenderOptions? options = null) #Renders the topology chart to SVG.
Parameters
- chart ChartForgeX.Topology.TopologyChart
- The topology chart.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- 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
- The topology chart.
- idScope string
- A caller-provided scope put in front of every SVG id.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- 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
- The topology chart.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The chart.
- edgeId string
- The edge id.
- configure System.Action<ChartForgeX.Topology.TopologyEdge>
- Configures the edge in place.
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
- The chart.
- kind ChartForgeX.Topology.TopologyEdgeKind
- The edge kind to match.
- configure System.Action<ChartForgeX.Topology.TopologyEdge>
- Configures each matching edge in place.
public static TopologyChart UpdateGroup(TopologyChart chart, string groupId, Action<TopologyGroup> configure) #Configures the group with the given id.
Parameters
- chart ChartForgeX.Topology.TopologyChart
- The chart.
- groupId string
- The group id.
- configure System.Action<ChartForgeX.Topology.TopologyGroup>
- Configures the group in place.
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
- The chart.
- nodeId string
- The node id.
- configure System.Action<ChartForgeX.Topology.TopologyNode>
- Configures the node in place.
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
- The chart.
- kind ChartForgeX.Topology.TopologyNodeKind
- The node kind to match.
- configure System.Action<ChartForgeX.Topology.TopologyNode>
- Configures each matching node in place.
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
- The topology chart.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The topology chart.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The topology chart.
- stream System.IO.Stream
- The destination stream.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- 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
- The topology chart.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Topology.TopologyRenderOptions? = null
- Optional render options.
- imageOptions ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Inherited Methods
Fields
public const string ScenarioStepMetadataKey #Metadata key that links a sequence message to the scenario step it was projected from.
cfx.scenario.step