# FlowArtifact

Represents a product-neutral workflow or process flow artifact.

 Class  

`ChartForgeX.VisualArtifacts`

**Namespace**

`ChartForgeX.VisualArtifacts`

**Assembly**

`ChartForgeX`

**Source**

[FlowArtifact.Prepare.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifact.Prepare.cs#L12)

**Implements**

 `IVisualRenderable` 

**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.

### Returned or exposed by 28

- Method [MarkupFlowParser.Parse](/api/chartforgex-markup-markupflowparser/#method-parse-string)
- Method [MarkupFlowParser.ParseBlock](/api/chartforgex-markup-markupflowparser/#method-parseblock-chartforgex-markup-visualmarkupblock)
- Extension method [FlowArtifact.Direction](/api/chartforgex-visualartifacts-flowartifact/#extension-direction-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-flowartifactdirection)
- Extension method [FlowArtifact.ExportFormats](/api/chartforgex-visualartifacts-flowartifact/#extension-exportformats-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-visualartifactexportformat)
- Extension method [FlowArtifact.Height](/api/chartforgex-visualartifacts-flowartifact/#extension-height-chartforgex-visualartifacts-flowartifact-double)
- Extension method [FlowArtifact.Id](/api/chartforgex-visualartifacts-flowartifact/#extension-id-chartforgex-visualartifacts-flowartifact-string)
- Extension method [FlowArtifact.LayoutMode](/api/chartforgex-visualartifacts-flowartifact/#extension-layoutmode-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-flowartifactlayoutmode)
- Extension method [FlowArtifact.Padding](/api/chartforgex-visualartifacts-flowartifact/#extension-padding-chartforgex-visualartifacts-flowartifact-double)
- Extension method [FlowArtifact.Subtitle](/api/chartforgex-visualartifacts-flowartifact/#extension-subtitle-chartforgex-visualartifacts-flowartifact-string)
- Extension method [FlowArtifact.Title](/api/chartforgex-visualartifacts-flowartifact/#extension-title-chartforgex-visualartifacts-flowartifact-string)
- Extension method [FlowArtifact.Width](/api/chartforgex-visualartifacts-flowartifact/#extension-width-chartforgex-visualartifacts-flowartifact-double)
- Method [FlowArtifact.AddConnector](/api/chartforgex-visualartifacts-flowartifact/#method-addconnector-string-string-string-chartforgex-visualartifacts-flowartifactconnectorkind-chartforgex-primitives-visuallinkdirection-chartforgex-tone-nullable-chartforgex-primitives-chartcolor)
- Method [FlowArtifact.AddLane](/api/chartforgex-visualartifacts-flowartifact/#method-addlane-string-string-chartforgex-tone-nullable-chartforgex-primitives-chartcolor)
- Method [FlowArtifact.AddStep](/api/chartforgex-visualartifacts-flowartifact/#method-addstep-string-string-chartforgex-visualartifacts-flowartifactstepkind-string-chartforgex-tone)
- Method [FlowArtifact.Create](/api/chartforgex-visualartifacts-flowartifact/#method-create-string)
- Method [FlowArtifact.UpdateConnector](/api/chartforgex-visualartifacts-flowartifact/#method-updateconnector-int32-action-chartforgex-visualartifacts-flowartifactconnector)
- Method [FlowArtifact.UpdateStep](/api/chartforgex-visualartifacts-flowartifact/#method-updatestep-string-action-chartforgex-visualartifacts-flowartifactstep)
- Method [FlowArtifactFluent.Direction](/api/chartforgex-visualartifacts-flowartifactfluent/#method-direction-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-flowartifactdirection)
- Method [FlowArtifactFluent.ExportFormats](/api/chartforgex-visualartifacts-flowartifactfluent/#method-exportformats-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-visualartifactexportformat)
- Method [FlowArtifactFluent.Height](/api/chartforgex-visualartifacts-flowartifactfluent/#method-height-chartforgex-visualartifacts-flowartifact-double)
- Method [FlowArtifactFluent.Id](/api/chartforgex-visualartifacts-flowartifactfluent/#method-id-chartforgex-visualartifacts-flowartifact-string)
- Method [FlowArtifactFluent.LayoutMode](/api/chartforgex-visualartifacts-flowartifactfluent/#method-layoutmode-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-flowartifactlayoutmode)
- Method [FlowArtifactFluent.Padding](/api/chartforgex-visualartifacts-flowartifactfluent/#method-padding-chartforgex-visualartifacts-flowartifact-double)
- Method [FlowArtifactFluent.Subtitle](/api/chartforgex-visualartifacts-flowartifactfluent/#method-subtitle-chartforgex-visualartifacts-flowartifact-string)
- Method [FlowArtifactFluent.Title](/api/chartforgex-visualartifacts-flowartifactfluent/#method-title-chartforgex-visualartifacts-flowartifact-string)
- Method [FlowArtifactFluent.Width](/api/chartforgex-visualartifacts-flowartifactfluent/#method-width-chartforgex-visualartifacts-flowartifact-double)
- Extension method [VisualArtifactInterchangeEnvelope.ToFlowArtifact](/api/chartforgex-visualartifacts-visualartifactinterchangeenvelope/#extension-toflowartifact-chartforgex-visualartifacts-visualartifactinterchangeenvelope)
- Method [VisualArtifactInterchangeMapping.ToFlowArtifact](/api/chartforgex-visualartifacts-visualartifactinterchangemapping/#method-toflowartifact-chartforgex-visualartifacts-visualartifactinterchangeenvelope)

### Accepted by parameters 32

- Method [InteractiveDiagramExtensions.ToInteractiveHtmlFragment](/api/chartforgex-interactivity-html-interactivediagramextensions/#method-tointeractivehtmlfragment-chartforgex-visualartifacts-flowartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) parameter `flow`
- Method [InteractiveDiagramExtensions.ToInteractiveHtmlPage](/api/chartforgex-interactivity-html-interactivediagramextensions/#method-tointeractivehtmlpage-chartforgex-visualartifacts-flowartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) parameter `flow`
- Extension method [FlowArtifact.Direction](/api/chartforgex-visualartifacts-flowartifact/#extension-direction-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-flowartifactdirection) parameter `flowArtifact`
- Extension method [FlowArtifact.ExportFormats](/api/chartforgex-visualartifacts-flowartifact/#extension-exportformats-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-visualartifactexportformat) parameter `flowArtifact`
- Extension method [FlowArtifact.Height](/api/chartforgex-visualartifacts-flowartifact/#extension-height-chartforgex-visualartifacts-flowartifact-double) parameter `flowArtifact`
- Extension method [FlowArtifact.Id](/api/chartforgex-visualartifacts-flowartifact/#extension-id-chartforgex-visualartifacts-flowartifact-string) parameter `flowArtifact`
- Extension method [FlowArtifact.LayoutMode](/api/chartforgex-visualartifacts-flowartifact/#extension-layoutmode-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-flowartifactlayoutmode) parameter `flowArtifact`
- Extension method [FlowArtifact.Padding](/api/chartforgex-visualartifacts-flowartifact/#extension-padding-chartforgex-visualartifacts-flowartifact-double) parameter `flowArtifact`
- Extension method [FlowArtifact.Subtitle](/api/chartforgex-visualartifacts-flowartifact/#extension-subtitle-chartforgex-visualartifacts-flowartifact-string) parameter `flowArtifact`
- Extension method [FlowArtifact.Title](/api/chartforgex-visualartifacts-flowartifact/#extension-title-chartforgex-visualartifacts-flowartifact-string) parameter `flowArtifact`
- Extension method [FlowArtifact.ToHtmlPage](/api/chartforgex-visualartifacts-flowartifact/#extension-tohtmlpage-chartforgex-visualartifacts-flowartifact) parameter `flow`
- Extension method [FlowArtifact.ToInteractiveHtmlFragment](/api/chartforgex-visualartifacts-flowartifact/#extension-tointeractivehtmlfragment-chartforgex-visualartifacts-flowartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) parameter `flow`
- Extension method [FlowArtifact.ToInteractiveHtmlPage](/api/chartforgex-visualartifacts-flowartifact/#extension-tointeractivehtmlpage-chartforgex-visualartifacts-flowartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) parameter `flow`
- Extension method [FlowArtifact.ToPng](/api/chartforgex-visualartifacts-flowartifact/#extension-topng-chartforgex-visualartifacts-flowartifact) parameter `flow`
- Extension method [FlowArtifact.ToSvg](/api/chartforgex-visualartifacts-flowartifact/#extension-tosvg-chartforgex-visualartifacts-flowartifact) parameter `flow`
- Extension method [FlowArtifact.ToTopologyChart](/api/chartforgex-visualartifacts-flowartifact/#extension-totopologychart-chartforgex-visualartifacts-flowartifact) parameter `flow`
- Extension method [FlowArtifact.ToVisualArtifact](/api/chartforgex-visualartifacts-flowartifact/#extension-tovisualartifact-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-visualartifactsourcelanguage) parameter `flow`
- Extension method [FlowArtifact.Width](/api/chartforgex-visualartifacts-flowartifact/#extension-width-chartforgex-visualartifacts-flowartifact-double) parameter `flowArtifact`
- Method [FlowArtifactFluent.Direction](/api/chartforgex-visualartifacts-flowartifactfluent/#method-direction-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-flowartifactdirection) parameter `flowArtifact`
- Method [FlowArtifactFluent.ExportFormats](/api/chartforgex-visualartifacts-flowartifactfluent/#method-exportformats-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-visualartifactexportformat) parameter `flowArtifact`
- Method [FlowArtifactFluent.Height](/api/chartforgex-visualartifacts-flowartifactfluent/#method-height-chartforgex-visualartifacts-flowartifact-double) parameter `flowArtifact`
- Method [FlowArtifactFluent.Id](/api/chartforgex-visualartifacts-flowartifactfluent/#method-id-chartforgex-visualartifacts-flowartifact-string) parameter `flowArtifact`
- Method [FlowArtifactFluent.LayoutMode](/api/chartforgex-visualartifacts-flowartifactfluent/#method-layoutmode-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-flowartifactlayoutmode) parameter `flowArtifact`
- Method [FlowArtifactFluent.Padding](/api/chartforgex-visualartifacts-flowartifactfluent/#method-padding-chartforgex-visualartifacts-flowartifact-double) parameter `flowArtifact`
- Method [FlowArtifactFluent.Subtitle](/api/chartforgex-visualartifacts-flowartifactfluent/#method-subtitle-chartforgex-visualartifacts-flowartifact-string) parameter `flowArtifact`
- Method [FlowArtifactFluent.Title](/api/chartforgex-visualartifacts-flowartifactfluent/#method-title-chartforgex-visualartifacts-flowartifact-string) parameter `flowArtifact`
- Method [FlowArtifactFluent.Width](/api/chartforgex-visualartifacts-flowartifactfluent/#method-width-chartforgex-visualartifacts-flowartifact-double) parameter `flowArtifact`
- Method [FlowArtifactRendering.ToHtmlPage](/api/chartforgex-visualartifacts-flowartifactrendering/#method-tohtmlpage-chartforgex-visualartifacts-flowartifact) parameter `flow`
- Method [FlowArtifactRendering.ToPng](/api/chartforgex-visualartifacts-flowartifactrendering/#method-topng-chartforgex-visualartifacts-flowartifact) parameter `flow`
- Method [FlowArtifactRendering.ToSvg](/api/chartforgex-visualartifacts-flowartifactrendering/#method-tosvg-chartforgex-visualartifacts-flowartifact) parameter `flow`
- Method [FlowArtifactRendering.ToTopologyChart](/api/chartforgex-visualartifacts-flowartifactrendering/#method-totopologychart-chartforgex-visualartifacts-flowartifact) parameter `flow`
- Method [FlowArtifactRendering.ToVisualArtifact](/api/chartforgex-visualartifacts-flowartifactrendering/#method-tovisualartifact-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-visualartifactsourcelanguage) parameter `flow`

 Filter members   

    Show inherited   

 

## Constructors

 `public FlowArtifact()` [#](#constructor-ctor) 

[FlowArtifactModels.cs:93](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L93)

## Methods

 `public FlowArtifact AddConnector(string sourceId, string targetId, string label = "", FlowArtifactConnectorKind kind = Flow, VisualLinkDirection direction = Forward, Tone tone = default, ChartColor? color = null)` [#](#method-addconnector-string-string-string-chartforgex-visualartifacts-flowartifactconnectorkind-chartforgex-primitives-visuallinkdirection-chartforgex-tone-nullable-chartforgex-primitives-chartcolor) 

[FlowArtifactModels.cs:179](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L179)

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**

Returns

 `FlowArtifact` 

 `public FlowArtifact AddLane(string id, string label, Tone tone = default, ChartColor? color = null)` [#](#method-addlane-string-string-chartforgex-tone-nullable-chartforgex-primitives-chartcolor) 

[FlowArtifactModels.cs:155](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L155)

Adds a flow lane.

Parameters

**id string required**

**label string required**

**tone ChartForgeX.Tone = default optional**

**color ChartForgeX.Primitives.ChartColor? = null optional**

Returns

 `FlowArtifact` 

 `public FlowArtifact AddStep(string id, string label, FlowArtifactStepKind kind = Step, string? laneId = null, Tone tone = default)` [#](#method-addstep-string-string-chartforgex-visualartifacts-flowartifactstepkind-string-chartforgex-tone) 

[FlowArtifactModels.cs:162](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L162)

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**

Returns

 `FlowArtifact` 

 `public static FlowArtifact Create(string id)` [#](#method-create-string) 

[FlowArtifactModels.cs:151](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L151)

Creates a new flow artifact.

Parameters

**id string required**

Returns

 `FlowArtifact` 

 `public PreparedVisual Prepare(VisualRenderContext context)` [#](#method-prepare-chartforgex-rendering-visualrendercontext) 

[FlowArtifact.Prepare.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifact.Prepare.cs#L12)

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)` [#](#method-supportsexport-chartforgex-visualartifacts-visualartifactexportformat) 

[FlowArtifactModels.cs:196](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L196)

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)` [#](#method-updateconnector-int32-action-chartforgex-visualartifacts-flowartifactconnector) 

[FlowArtifactModels.cs:189](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L189)

Replaces an existing connector with an independently configured copy.

Parameters

**connectorIndex int required**

**configure System.Action<ChartForgeX.VisualArtifacts.FlowArtifactConnector> required**

Returns

 `FlowArtifact` 

 `public FlowArtifact UpdateStep(string id, Action<FlowArtifactStep> configure)` [#](#method-updatestep-string-action-chartforgex-visualartifacts-flowartifactstep) 

[FlowArtifactModels.cs:170](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L170)

Replaces an existing step with an independently configured copy.

Parameters

**id string required**

**configure System.Action<ChartForgeX.VisualArtifacts.FlowArtifactStep> required**

Returns

 `FlowArtifact` 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string Id { get; set; }` [#](#property-id) 

[FlowArtifactModels.cs:106](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L106)

Gets or sets a stable flow identifier.

 `public string Title { get; set; }` [#](#property-title) 

[FlowArtifactModels.cs:109](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L109)

Gets or sets the flow title.

 `public string Subtitle { get; set; }` [#](#property-subtitle) 

[FlowArtifactModels.cs:112](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L112)

Gets or sets the flow subtitle.

 `public FlowArtifactLayoutMode LayoutMode { get; set; }` [#](#property-layoutmode) 

[FlowArtifactModels.cs:115](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L115)

Gets or sets the deterministic layout mode.

 `public FlowArtifactDirection Direction { get; set; }` [#](#property-direction) 

[FlowArtifactModels.cs:118](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L118)

Gets or sets the deterministic layout direction.

 `public double Width { get; set; }` [#](#property-width) 

[FlowArtifactModels.cs:121](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L121)

Gets or sets the static preview width.

 `public double Height { get; set; }` [#](#property-height) 

[FlowArtifactModels.cs:124](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L124)

Gets or sets the static preview height.

 `public double Padding { get; set; }` [#](#property-padding) 

[FlowArtifactModels.cs:127](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L127)

Gets or sets the static preview padding.

 `public IReadOnlyList<FlowArtifactLane> Lanes { get; }` [#](#property-lanes) 

[FlowArtifactModels.cs:130](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L130)

Gets declared flow lanes.

 `public IReadOnlyList<FlowArtifactStep> Steps { get; }` [#](#property-steps) 

[FlowArtifactModels.cs:133](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L133)

Gets declared flow steps.

 `public IReadOnlyList<FlowArtifactConnector> Connectors { get; }` [#](#property-connectors) 

[FlowArtifactModels.cs:136](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L136)

Gets declared flow connectors.

 `public VisualArtifactExportFormat ExportFormats { get; set; }` [#](#property-exportformats) 

[FlowArtifactModels.cs:140](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L140)

Gets or sets static export formats declared by this artifact.

 `public Dictionary<string, string> Metadata { get; }` [#](#property-metadata) 

[FlowArtifactModels.cs:148](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactModels.cs#L148)

Gets metadata for host adapters and exporters.

## Extension Methods

 `public static FlowArtifact Direction(FlowArtifact flowArtifact, FlowArtifactDirection value)` [#](#extension-direction-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-flowartifactdirection) 

Sets [FlowArtifact.Direction](/api/chartforgex-visualartifacts-flowartifact/): 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

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

 `public static FlowArtifact ExportFormats(FlowArtifact flowArtifact, VisualArtifactExportFormat value)` [#](#extension-exportformats-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-visualartifactexportformat) 

Sets [FlowArtifact.ExportFormats](/api/chartforgex-visualartifacts-flowartifact/): 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

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

 `public static FlowArtifact Height(FlowArtifact flowArtifact, double value)` [#](#extension-height-chartforgex-visualartifacts-flowartifact-double) 

Sets [FlowArtifact.Height](/api/chartforgex-visualartifacts-flowartifact/): 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

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

 `public static FlowArtifact Id(FlowArtifact flowArtifact, string value)` [#](#extension-id-chartforgex-visualartifacts-flowartifact-string) 

Sets [FlowArtifact.Id](/api/chartforgex-visualartifacts-flowartifact/): 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

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

 `public static FlowArtifact LayoutMode(FlowArtifact flowArtifact, FlowArtifactLayoutMode value)` [#](#extension-layoutmode-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-flowartifactlayoutmode) 

Sets [FlowArtifact.LayoutMode](/api/chartforgex-visualartifacts-flowartifact/): 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

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

 `public static FlowArtifact Padding(FlowArtifact flowArtifact, double value)` [#](#extension-padding-chartforgex-visualartifacts-flowartifact-double) 

Sets [FlowArtifact.Padding](/api/chartforgex-visualartifacts-flowartifact/): 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

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

 `public static FlowArtifact Subtitle(FlowArtifact flowArtifact, string value)` [#](#extension-subtitle-chartforgex-visualartifacts-flowartifact-string) 

Sets [FlowArtifact.Subtitle](/api/chartforgex-visualartifacts-flowartifact/): 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

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

 `public static FlowArtifact Title(FlowArtifact flowArtifact, string value)` [#](#extension-title-chartforgex-visualartifacts-flowartifact-string) 

Sets [FlowArtifact.Title](/api/chartforgex-visualartifacts-flowartifact/): 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

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

 `public static string ToHtmlPage(FlowArtifact flow)` [#](#extension-tohtmlpage-chartforgex-visualartifacts-flowartifact) 

[FlowArtifactRendering.cs:93](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L93)

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)` [#](#extension-tointeractivehtmlfragment-chartforgex-visualartifacts-flowartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) 

[InteractiveDiagramExtensions.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveDiagramExtensions.cs#L23)

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)` [#](#extension-tointeractivehtmlpage-chartforgex-visualartifacts-flowartifact-chartforgex-rendering-visualrendercontext-action-chartforgex-interactivity-html-htmlinteractivediagramoptions) 

[InteractiveDiagramExtensions.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/InteractiveDiagramExtensions.cs#L16)

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)` [#](#extension-topng-chartforgex-visualartifacts-flowartifact) 

[FlowArtifactRendering.cs:101](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L101)

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)` [#](#extension-tosvg-chartforgex-visualartifacts-flowartifact) 

[FlowArtifactRendering.cs:86](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L86)

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)` [#](#extension-totopologychart-chartforgex-visualartifacts-flowartifact) 

[FlowArtifactRendering.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L19)

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)` [#](#extension-tovisualartifact-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-visualartifactsourcelanguage) 

[FlowArtifactRendering.cs:59](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L59)

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)` [#](#extension-width-chartforgex-visualartifacts-flowartifact-double) 

Sets [FlowArtifact.Width](/api/chartforgex-visualartifacts-flowartifact/): 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

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

<!-- PowerForge markdown artifact sha256:CDB385EE88EFE6EE557630E19A66461D77E69A981A433E4FED7A0C9D18ABD52E -->
