Skip to content
ChartForgeX
Class

FlowArtifact

ChartForgeX.VisualArtifacts

Namespace
ChartForgeX.VisualArtifacts
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent

Represents a product-neutral workflow or process flow artifact.

Inheritance

  • object
  • FlowArtifact

Usage

Explore 60 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.

Accepted by parameters 32

Constructors

public FlowArtifact() #

Methods

public FlowArtifact AddConnector(string sourceId, string targetId, string label = "", FlowArtifactConnectorKind kind = Flow, VisualLinkDirection direction = Forward, Tone tone = default, ChartColor? color = null) #

Adds a flow connector.

Parameters

sourceId string required
targetId string required
label string = "" optional
kind ChartForgeX.VisualArtifacts.FlowArtifactConnectorKind = Flow optional
direction ChartForgeX.Primitives.VisualLinkDirection = Forward optional
tone ChartForgeX.Tone = default optional
color ChartForgeX.Primitives.ChartColor? = null optional
public FlowArtifact AddLane(string id, string label, Tone tone = default, ChartColor? color = null) #

Adds a flow lane.

Parameters

id string required
label string required
tone ChartForgeX.Tone = default optional
color ChartForgeX.Primitives.ChartColor? = null optional
public FlowArtifact AddStep(string id, string label, FlowArtifactStepKind kind = Step, string? laneId = null, Tone tone = default) #

Adds a flow step.

Parameters

id string required
label string required
kind ChartForgeX.VisualArtifacts.FlowArtifactStepKind = Step optional
laneId string? = null optional
tone ChartForgeX.Tone = default optional
public static FlowArtifact Create(string id) #

Creates a new flow artifact.

Parameters

id string required
public PreparedVisual Prepare(VisualRenderContext context) #

Prepares a flow through the shared topology compiler while retaining native flow semantics.

Parameters

context ChartForgeX.Rendering.VisualRenderContext required
Common size, frame, theme and typography.

Returns

PreparedVisual A detached static scene and resolved native flow geometry.
public bool SupportsExport(VisualArtifactExportFormat format) #

Returns true when the flow declares the requested static export format.

Parameters

format ChartForgeX.VisualArtifacts.VisualArtifactExportFormat required

Returns

bool
public FlowArtifact UpdateConnector(int connectorIndex, Action<FlowArtifactConnector> configure) #

Replaces an existing connector with an independently configured copy.

Parameters

connectorIndex int required
configure System.Action<ChartForgeX.VisualArtifacts.FlowArtifactConnector> required
public FlowArtifact UpdateStep(string id, Action<FlowArtifactStep> configure) #

Replaces an existing step with an independently configured copy.

Parameters

id string required
configure System.Action<ChartForgeX.VisualArtifacts.FlowArtifactStep> required

Properties

public string Id { get; set; } #

Gets or sets a stable flow identifier.

public string Title { get; set; } #

Gets or sets the flow title.

public string Subtitle { get; set; } #

Gets or sets the flow subtitle.

public FlowArtifactLayoutMode LayoutMode { get; set; } #

Gets or sets the deterministic layout mode.

public FlowArtifactDirection Direction { get; set; } #

Gets or sets the deterministic layout direction.

public double Width { get; set; } #

Gets or sets the static preview width.

public double Height { get; set; } #

Gets or sets the static preview height.

public double Padding { get; set; } #

Gets or sets the static preview padding.

public IReadOnlyList<FlowArtifactLane> Lanes { get; } #

Gets declared flow lanes.

public IReadOnlyList<FlowArtifactStep> Steps { get; } #

Gets declared flow steps.

public IReadOnlyList<FlowArtifactConnector> Connectors { get; } #

Gets declared flow connectors.

public VisualArtifactExportFormat ExportFormats { get; set; } #

Gets or sets static export formats declared by this artifact.

public Dictionary<string, string> Metadata { get; } #

Gets metadata for host adapters and exporters.

Extension Methods

public static FlowArtifact Direction(FlowArtifact flowArtifact, FlowArtifactDirection value) #

Sets FlowArtifact.Direction: Gets or sets the deterministic layout direction.

Parameters

flowArtifact ChartForgeX.VisualArtifacts.FlowArtifact required
The instance.
value ChartForgeX.VisualArtifacts.FlowArtifactDirection required
The value.

Returns

FlowArtifact The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.VisualArtifacts.FlowArtifact { Direction = value };    flowArtifact.Direction(value);
public static FlowArtifact ExportFormats(FlowArtifact flowArtifact, VisualArtifactExportFormat value) #

Sets FlowArtifact.ExportFormats: Gets or sets static export formats declared by this artifact.

Parameters

flowArtifact ChartForgeX.VisualArtifacts.FlowArtifact required
The instance.
value ChartForgeX.VisualArtifacts.VisualArtifactExportFormat required
The value.

Returns

FlowArtifact The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ChartForgeX.VisualArtifacts.FlowArtifact { ExportFormats = value };    flowArtifact.ExportFormats(value);
public static FlowArtifact Height(FlowArtifact flowArtifact, double value) #

Sets FlowArtifact.Height: Gets or sets the static preview height.

Parameters

flowArtifact ChartForgeX.VisualArtifacts.FlowArtifact required
The instance.
value double required
The value.

Returns

FlowArtifact The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.VisualArtifacts.FlowArtifact { Height = value };    flowArtifact.Height(value);
public static FlowArtifact Id(FlowArtifact flowArtifact, string value) #

Sets FlowArtifact.Id: Gets or sets a stable flow identifier.

Parameters

flowArtifact ChartForgeX.VisualArtifacts.FlowArtifact required
The instance.
value string required
The value.

Returns

FlowArtifact The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ChartForgeX.VisualArtifacts.FlowArtifact { Id = value };    flowArtifact.Id(value);
public static FlowArtifact LayoutMode(FlowArtifact flowArtifact, FlowArtifactLayoutMode value) #

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

Parameters

flowArtifact ChartForgeX.VisualArtifacts.FlowArtifact required
The instance.
value ChartForgeX.VisualArtifacts.FlowArtifactLayoutMode required
The value.

Returns

FlowArtifact The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.VisualArtifacts.FlowArtifact { LayoutMode = value };    flowArtifact.LayoutMode(value);
public static FlowArtifact Padding(FlowArtifact flowArtifact, double value) #

Sets FlowArtifact.Padding: Gets or sets the static preview padding.

Parameters

flowArtifact ChartForgeX.VisualArtifacts.FlowArtifact required
The instance.
value double required
The value.

Returns

FlowArtifact The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ChartForgeX.VisualArtifacts.FlowArtifact { Padding = value };    flowArtifact.Padding(value);
public static FlowArtifact Subtitle(FlowArtifact flowArtifact, string value) #

Sets FlowArtifact.Subtitle: Gets or sets the flow subtitle.

Parameters

flowArtifact ChartForgeX.VisualArtifacts.FlowArtifact required
The instance.
value string required
The value.

Returns

FlowArtifact The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.VisualArtifacts.FlowArtifact { Subtitle = value };    flowArtifact.Subtitle(value);
public static FlowArtifact Title(FlowArtifact flowArtifact, string value) #

Sets FlowArtifact.Title: Gets or sets the flow title.

Parameters

flowArtifact ChartForgeX.VisualArtifacts.FlowArtifact required
The instance.
value string required
The value.

Returns

FlowArtifact The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.VisualArtifacts.FlowArtifact { Title = value };    flowArtifact.Title(value);
public static string ToHtmlPage(FlowArtifact flow) #

Renders a flow artifact static preview to a standalone HTML page.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow artifact.

Returns

string HTML markup.
public static string ToInteractiveHtmlFragment(FlowArtifact flow, VisualRenderContext? context = null, Action<HtmlInteractiveDiagramOptions>? configure = null) #

Renders a self-contained interactive flow fragment with its style and runtime inlined.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow to render.
context ChartForgeX.Rendering.VisualRenderContext? = null optional
Optional size, theme and frame; omitted uses the flow's own export request.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlInteractiveDiagramOptions>? = null optional
Optional localization and content security policy settings.

Returns

string
public static string ToInteractiveHtmlPage(FlowArtifact flow, VisualRenderContext? context = null, Action<HtmlInteractiveDiagramOptions>? configure = null) #

Renders a complete self-contained interactive flow page.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow to render.
context ChartForgeX.Rendering.VisualRenderContext? = null optional
Optional size, theme and frame; omitted uses the flow's own export request.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlInteractiveDiagramOptions>? = null optional
Optional localization and content security policy settings.

Returns

string
public static byte[] ToPng(FlowArtifact flow) #

Renders a flow artifact static preview to PNG.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow artifact.

Returns

byte[] PNG bytes.
public static string ToSvg(FlowArtifact flow) #

Renders a flow artifact static preview to SVG.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow artifact.

Returns

string SVG markup.
public static TopologyChart ToTopologyChart(FlowArtifact flow) #

Converts a flow artifact into a topology chart for deterministic static previews.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow artifact.

Returns

TopologyChart A topology chart preview model.
public static VisualArtifact ToVisualArtifact(FlowArtifact flow, VisualArtifactSourceLanguage sourceLanguage = Native) #

Wraps a flow artifact in a product-neutral visual artifact envelope.

Parameters

flow ChartForgeX.VisualArtifacts.FlowArtifact required
The flow artifact.
sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native optional
The source language that produced the flow.

Returns

VisualArtifact A visual artifact envelope.
public static FlowArtifact Width(FlowArtifact flowArtifact, double value) #

Sets FlowArtifact.Width: Gets or sets the static preview width.

Parameters

flowArtifact ChartForgeX.VisualArtifacts.FlowArtifact required
The instance.
value double required
The value.

Returns

FlowArtifact The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.VisualArtifacts.FlowArtifact { Width = value };    flowArtifact.Width(value);