Skip to content
ChartForgeX
Class

SequenceArtifact

ChartForgeX.VisualArtifacts

Namespace
ChartForgeX.VisualArtifacts
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent

Describes a reusable product-neutral sequence or interaction diagram artifact.

Inheritance

  • object
  • SequenceArtifact

Usage

Explore 82 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 44

Accepted by parameters 38

Constructors

Methods

public SequenceArtifact AddActivation(string participantId, bool active, int stepIndex) #

Adds a standalone participant activation or deactivation.

Parameters

participantId string required
active bool required
stepIndex int required
public SequenceArtifact AddBlock(SequenceArtifactBlockKind kind, string text, int startStepIndex, int endStepIndex, bool isEmpty = false, int depth = 0) #

Adds a block span.

Parameters

kind ChartForgeX.VisualArtifacts.SequenceArtifactBlockKind required
text string required
startStepIndex int required
endStepIndex int required
isEmpty bool = false optional
depth int = 0 optional
public SequenceArtifact AddBranch(SequenceArtifactBlockKind parentKind, string kind, string text, int startStepIndex, int endStepIndex, int depth = 0, bool isEmpty = false) #

Adds a branch span within a sequence block.

Parameters

parentKind ChartForgeX.VisualArtifacts.SequenceArtifactBlockKind required
kind string required
text string required
startStepIndex int required
endStepIndex int required
depth int = 0 optional
isEmpty bool = false optional
public SequenceArtifact AddMessage(string sourceId, string targetId, string? text = null, SequenceArtifactMessageLineStyle lineStyle = Solid, SequenceArtifactMessageKind kind = Call) #

Adds a message.

Parameters

sourceId string required
targetId string required
text string? = null optional
lineStyle ChartForgeX.VisualArtifacts.SequenceArtifactMessageLineStyle = Solid optional
kind ChartForgeX.VisualArtifacts.SequenceArtifactMessageKind = Call optional
public SequenceArtifact AddNote(SequenceArtifactNotePlacement placement, IEnumerable<string> participantIds, string text) #

Adds a note.

Parameters

placement ChartForgeX.VisualArtifacts.SequenceArtifactNotePlacement required
participantIds System.Collections.Generic.IEnumerable<string> required
text string required
public SequenceArtifact AddParticipant(string id, string? label = null, SequenceArtifactParticipantKind kind = Participant) #

Adds or updates a participant.

Parameters

id string required
label string? = null optional
kind ChartForgeX.VisualArtifacts.SequenceArtifactParticipantKind = Participant optional
public SequenceArtifact AddParticipantGroup(string id, string label, int firstParticipantIndex, int lastParticipantIndex, ChartColor? fill = null) #

Adds a vertical group spanning an inclusive, contiguous range of participants.

Parameters

id string required
label string required
firstParticipantIndex int required
lastParticipantIndex int required
fill ChartForgeX.Primitives.ChartColor? = null optional
public static SequenceArtifact Create(string id) #

Creates a sequence artifact.

Parameters

id string required
public PreparedVisual Prepare(VisualRenderContext context) #

Prepares measured participants, messages, activations, notes and interaction fragments into a detached native scene.

Parameters

context ChartForgeX.Rendering.VisualRenderContext required

Properties

public IReadOnlyList<SequenceArtifactParticipantGroup> ParticipantGroups { get; } #

Gets vertical groups of contiguous participants.

public SequenceArtifactPaint Paint { get; } #

Gets explicit sequence role paints; unset roles use the active native theme.

public SequenceLayoutPolicy? Layout { get; set; } #

Gets or sets immutable optional logical allocations; null and empty retain incumbent output.

public SequenceTypography? Typography { get; set; } #

Gets or sets immutable role typography; explicit styles resolve over the active context.

public VisualTheme Theme { get; set; } #

Gets or sets the paired theme used by convenience SVG, PNG and HTML exports.

public ThemeMode ThemeMode { get; set; } #

Gets or sets the palette mode used by convenience exports. ThemeMode.Auto renders as light.

public VisualAccessibility Accessibility { get; } #

Gets accessible naming for static sequence previews.

public string Id { get; set; } #

Gets or sets a stable sequence artifact id.

public string Title { get; set; } #

Gets or sets the sequence title.

public string Subtitle { get; set; } #

Gets or sets the sequence subtitle.

public double Width { get; set; } #

Gets or sets the natural preview width.

public double Height { get; set; } #

Gets or sets the natural preview height.

public double Padding { get; set; } #

Gets or sets the preview padding.

public VisualArtifactExportFormat ExportFormats { get; set; } #

Gets or sets supported static export formats.

public IReadOnlyList<SequenceArtifactParticipant> Participants { get; } #

Gets participants in display order.

public IReadOnlyList<SequenceArtifactMessage> Messages { get; } #

Gets messages in chronological order.

public IReadOnlyList<SequenceArtifactActivation> Activations { get; } #

Gets standalone activation changes in source order.

public IReadOnlyList<SequenceArtifactNote> Notes { get; } #

Gets notes in chronological order.

public IReadOnlyList<SequenceArtifactBlock> Blocks { get; } #

Gets block spans.

public IReadOnlyList<SequenceArtifactBranch> Branches { get; } #

Gets branch spans within alternative, parallel, and critical blocks.

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

Gets artifact metadata for host adapters.

Extension Methods

public static SequenceArtifact Accessibility(SequenceArtifact sequenceArtifact, Action<VisualAccessibility> configure) #

Configures SequenceArtifact.Accessibility in place: Gets accessible naming for static sequence previews.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
configure System.Action<ChartForgeX.Accessibility.VisualAccessibility> required
Configures the value.

Returns

SequenceArtifact The same instance.
public static SequenceArtifact ExportFormats(SequenceArtifact sequenceArtifact, VisualArtifactExportFormat value) #

Sets SequenceArtifact.ExportFormats: Gets or sets supported static export formats.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value ChartForgeX.VisualArtifacts.VisualArtifactExportFormat required
The value.

Returns

SequenceArtifact The same instance.

Examples

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

Sets SequenceArtifact.Height: Gets or sets the natural preview height.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value double required
The value.

Returns

SequenceArtifact The same instance.

Examples

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

Sets SequenceArtifact.Id: Gets or sets a stable sequence artifact id.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value string required
The value.

Returns

SequenceArtifact The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.VisualArtifacts.SequenceArtifact { Id = value };    sequenceArtifact.Id(value);
public static SequenceArtifact Layout(SequenceArtifact sequenceArtifact, SequenceLayoutPolicy? value) #

Sets SequenceArtifact.Layout: Gets or sets immutable optional logical allocations; null and empty retain incumbent output.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value ChartForgeX.VisualArtifacts.SequenceLayoutPolicy? required
The value.

Returns

SequenceArtifact The same instance.

Examples

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

Sets SequenceArtifact.Padding: Gets or sets the preview padding.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value double required
The value.

Returns

SequenceArtifact The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.VisualArtifacts.SequenceArtifact { Padding = value };    sequenceArtifact.Padding(value);
public static SequenceArtifact Paint(SequenceArtifact sequenceArtifact, Action<SequenceArtifactPaint> configure) #

Configures SequenceArtifact.Paint in place: Gets explicit sequence role paints; unset roles use the active native theme.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
configure System.Action<ChartForgeX.VisualArtifacts.SequenceArtifactPaint> required
Configures the value.

Returns

SequenceArtifact The same instance.
public static SequenceArtifact Subtitle(SequenceArtifact sequenceArtifact, string value) #

Sets SequenceArtifact.Subtitle: Gets or sets the sequence subtitle.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value string required
The value.

Returns

SequenceArtifact The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.VisualArtifacts.SequenceArtifact { Subtitle = value };    sequenceArtifact.Subtitle(value);
public static SequenceArtifact Theme(SequenceArtifact sequenceArtifact, VisualTheme value) #

Sets SequenceArtifact.Theme: Gets or sets the paired theme used by convenience SVG, PNG and HTML exports.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value ChartForgeX.Themes.VisualTheme required
The value.

Returns

SequenceArtifact The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.VisualArtifacts.SequenceArtifact { Theme = value };    sequenceArtifact.Theme(value);
public static SequenceArtifact ThemeMode(SequenceArtifact sequenceArtifact, ThemeMode value) #

Sets SequenceArtifact.ThemeMode: Gets or sets the palette mode used by convenience exports. Auto renders as light.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value ChartForgeX.ThemeMode required
The value.

Returns

SequenceArtifact The same instance.

Examples

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

Sets SequenceArtifact.Title: Gets or sets the sequence title.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value string required
The value.

Returns

SequenceArtifact The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.VisualArtifacts.SequenceArtifact { Title = value };    sequenceArtifact.Title(value);
public static string ToInteractiveHtmlFragment(SequenceArtifact sequence, VisualRenderContext? context = null, Action<HtmlInteractiveDiagramOptions>? configure = null) #

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

Parameters

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

Returns

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

Renders a complete self-contained interactive sequence page with message playback.

Parameters

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

Returns

string
public static string ToNavigationHtmlPage(SequenceArtifact sequence, HtmlSequenceNavigationOptions? options = null, VisualRenderContext? context = null) #

Creates a self-contained page from one native preparation and detached participant link facts.

Parameters

sequence ChartForgeX.VisualArtifacts.SequenceArtifact required
The reusable sequence source.
options ChartForgeX.Interactivity.Html.HtmlSequenceNavigationOptions? = null optional
Optional host-only initial disclosure state, captured before preparation.
context ChartForgeX.Rendering.VisualRenderContext? = null optional
Optional explicit native viewport/theme request; omitted uses the normal natural sequence owner.

Returns

string Native script-free SVG plus escaped details/link controls, or the ordinary static page when no visible participant has links.
public static byte[] ToPng(SequenceArtifact sequence) #

Renders the same native measured sequence scene directly to PNG.

Parameters

sequence ChartForgeX.VisualArtifacts.SequenceArtifact required
The source model; its width, height and padding supply the default request.

Returns

byte[] PNG bytes using the shared raster defaults.
public static string ToSvg(SequenceArtifact sequence) #

Renders a sequence to shared SVG with measured content expansion beyond its authored minimum size.

Parameters

sequence ChartForgeX.VisualArtifacts.SequenceArtifact required
The source model; its width, height and padding supply the default request.

Returns

string Script-free SVG from a native prepared scene.
public static VisualArtifact ToVisualArtifact(SequenceArtifact sequence, VisualArtifactSourceLanguage sourceLanguage = Native) #

Wraps authored sequence semantics without preparing a preview or changing the source model.

Parameters

sequence ChartForgeX.VisualArtifacts.SequenceArtifact required
The sequence source model.
sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native optional
The source language that produced the model.

Returns

VisualArtifact A lazy source envelope; prepare explicitly before ToArtifact when a detached display snapshot is required.
public static SequenceArtifact Typography(SequenceArtifact sequenceArtifact, SequenceTypography? value) #

Sets SequenceArtifact.Typography: Gets or sets immutable role typography; explicit styles resolve over the active context.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value ChartForgeX.VisualArtifacts.SequenceTypography? required
The value.

Returns

SequenceArtifact The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.VisualArtifacts.SequenceArtifact { Typography = value };    sequenceArtifact.Typography(value);
public static SequenceArtifact Width(SequenceArtifact sequenceArtifact, double value) #

Sets SequenceArtifact.Width: Gets or sets the natural preview width.

Parameters

sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact required
The instance.
value double required
The value.

Returns

SequenceArtifact The same instance.

Examples

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