FlowArtifact
ChartForgeX.VisualArtifacts
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.
Returned or exposed by 28
- Method MarkupFlowParser.Parse
- Method MarkupFlowParser.ParseBlock
- Extension method FlowArtifact.Direction
- Extension method FlowArtifact.ExportFormats
- Extension method FlowArtifact.Height
- Extension method FlowArtifact.Id
- Extension method FlowArtifact.LayoutMode
- Extension method FlowArtifact.Padding
- Extension method FlowArtifact.Subtitle
- Extension method FlowArtifact.Title
- Extension method FlowArtifact.Width
- Method FlowArtifact.AddConnector
- Method FlowArtifact.AddLane
- Method FlowArtifact.AddStep
- Method FlowArtifact.Create
- Method FlowArtifact.UpdateConnector
- Method FlowArtifact.UpdateStep
- Method FlowArtifactFluent.Direction
- Method FlowArtifactFluent.ExportFormats
- Method FlowArtifactFluent.Height
- Method FlowArtifactFluent.Id
- Method FlowArtifactFluent.LayoutMode
- Method FlowArtifactFluent.Padding
- Method FlowArtifactFluent.Subtitle
- Method FlowArtifactFluent.Title
- Method FlowArtifactFluent.Width
- Extension method VisualArtifactInterchangeEnvelope.ToFlowArtifact
- Method VisualArtifactInterchangeMapping.ToFlowArtifact
Accepted by parameters 32
- Method InteractiveDiagramExtensions.ToInteractiveHtmlFragment
- Method InteractiveDiagramExtensions.ToInteractiveHtmlPage
- Extension method FlowArtifact.Direction
- Extension method FlowArtifact.ExportFormats
- Extension method FlowArtifact.Height
- Extension method FlowArtifact.Id
- Extension method FlowArtifact.LayoutMode
- Extension method FlowArtifact.Padding
- Extension method FlowArtifact.Subtitle
- Extension method FlowArtifact.Title
- Extension method FlowArtifact.ToHtmlPage
- Extension method FlowArtifact.ToInteractiveHtmlFragment
- Extension method FlowArtifact.ToInteractiveHtmlPage
- Extension method FlowArtifact.ToPng
- Extension method FlowArtifact.ToSvg
- Extension method FlowArtifact.ToTopologyChart
- Extension method FlowArtifact.ToVisualArtifact
- Extension method FlowArtifact.Width
- Method FlowArtifactFluent.Direction
- Method FlowArtifactFluent.ExportFormats
- Method FlowArtifactFluent.Height
- Method FlowArtifactFluent.Id
- Method FlowArtifactFluent.LayoutMode
- Method FlowArtifactFluent.Padding
- Method FlowArtifactFluent.Subtitle
- Method FlowArtifactFluent.Title
- Method FlowArtifactFluent.Width
- Method FlowArtifactRendering.ToHtmlPage
- Method FlowArtifactRendering.ToPng
- Method FlowArtifactRendering.ToSvg
- Method FlowArtifactRendering.ToTopologyChart
- Method FlowArtifactRendering.ToVisualArtifact
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
- targetId string
- label string = ""
- kind ChartForgeX.VisualArtifacts.FlowArtifactConnectorKind = Flow
- direction ChartForgeX.Primitives.VisualLinkDirection = Forward
- tone ChartForgeX.Tone = default
- color ChartForgeX.Primitives.ChartColor? = null
Returns
FlowArtifactpublic FlowArtifact AddLane(string id, string label, Tone tone = default, ChartColor? color = null) #Adds a flow lane.
Parameters
- id string
- label string
- tone ChartForgeX.Tone = default
- color ChartForgeX.Primitives.ChartColor? = null
Returns
FlowArtifactpublic FlowArtifact AddStep(string id, string label, FlowArtifactStepKind kind = Step, string? laneId = null, Tone tone = default) #Adds a flow step.
Parameters
- id string
- label string
- kind ChartForgeX.VisualArtifacts.FlowArtifactStepKind = Step
- laneId string? = null
- tone ChartForgeX.Tone = default
Returns
FlowArtifactpublic static FlowArtifact Create(string id) #Creates a new flow artifact.
Parameters
- id string
Returns
FlowArtifactpublic PreparedVisual Prepare(VisualRenderContext context) #Prepares a flow through the shared topology compiler while retaining native flow semantics.
Parameters
- context ChartForgeX.Rendering.VisualRenderContext
- Common size, frame, theme and typography.
public bool SupportsExport(VisualArtifactExportFormat format) #Returns true when the flow declares the requested static export format.
Parameters
- format ChartForgeX.VisualArtifacts.VisualArtifactExportFormat
Returns
boolpublic FlowArtifact UpdateConnector(int connectorIndex, Action<FlowArtifactConnector> configure) #Replaces an existing connector with an independently configured copy.
Parameters
- connectorIndex int
- configure System.Action<ChartForgeX.VisualArtifacts.FlowArtifactConnector>
Returns
FlowArtifactpublic FlowArtifact UpdateStep(string id, Action<FlowArtifactStep> configure) #Replaces an existing step with an independently configured copy.
Parameters
- id string
- configure System.Action<ChartForgeX.VisualArtifacts.FlowArtifactStep>
Returns
FlowArtifactInherited Methods
Properties
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 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
- The instance.
- value ChartForgeX.VisualArtifacts.FlowArtifactDirection
- The value.
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
- The instance.
- value ChartForgeX.VisualArtifacts.VisualArtifactExportFormat
- The value.
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
- The instance.
- value double
- The value.
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
- The instance.
- value string
- The value.
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
- The instance.
- value ChartForgeX.VisualArtifacts.FlowArtifactLayoutMode
- The value.
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
- The instance.
- value double
- The value.
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
- The instance.
- value string
- The value.
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
- The instance.
- value string
- The value.
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
- 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
- The flow to render.
- context ChartForgeX.Rendering.VisualRenderContext? = null
- Optional size, theme and frame; omitted uses the flow's own export request.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlInteractiveDiagramOptions>? = null
- Optional localization and content security policy settings.
Returns
stringpublic 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
- The flow to render.
- context ChartForgeX.Rendering.VisualRenderContext? = null
- Optional size, theme and frame; omitted uses the flow's own export request.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlInteractiveDiagramOptions>? = null
- Optional localization and content security policy settings.
Returns
stringpublic static byte[] ToPng(FlowArtifact flow) #Renders a flow artifact static preview to PNG.
Parameters
- flow ChartForgeX.VisualArtifacts.FlowArtifact
- 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
- 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
- The flow artifact.
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
- The flow artifact.
- sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native
- The source language that produced the flow.
public static FlowArtifact Width(FlowArtifact flowArtifact, double value) #Sets FlowArtifact.Width: Gets or sets the static preview width.
Parameters
- flowArtifact ChartForgeX.VisualArtifacts.FlowArtifact
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.VisualArtifacts.FlowArtifact { Width = value }; flowArtifact.Width(value);