SequenceArtifact
ChartForgeX.VisualArtifacts
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
- Method MarkupSequenceParser.Parse
- Method MarkupSequenceParser.ParseBlock
- Extension method MermaidSequenceDocument.ToSequenceArtifact
- Method MermaidSequenceRendering.ToSequenceArtifact
- Extension method MermaidZenUmlDocument.ToSequenceArtifact
- Method MermaidZenUmlRendering.ToSequenceArtifact
- Extension method TopologyChart.ToSequenceArtifact
- Method TopologyChartExtensions.ToSequenceArtifact
- Extension method SequenceArtifact.Accessibility
- Extension method SequenceArtifact.ExportFormats
- Extension method SequenceArtifact.Height
- Extension method SequenceArtifact.Id
- Extension method SequenceArtifact.Layout
- Extension method SequenceArtifact.Padding
- Extension method SequenceArtifact.Paint
- Extension method SequenceArtifact.Subtitle
- Extension method SequenceArtifact.Theme
- Extension method SequenceArtifact.ThemeMode
- Extension method SequenceArtifact.Title
- Extension method SequenceArtifact.Typography
- Extension method SequenceArtifact.Width
- Method SequenceArtifact.AddActivation
- Method SequenceArtifact.AddBlock
- Method SequenceArtifact.AddBranch
- Method SequenceArtifact.AddMessage
- Method SequenceArtifact.AddNote
- Method SequenceArtifact.AddParticipant
- Method SequenceArtifact.AddParticipantGroup
- Method SequenceArtifact.Create
- Method SequenceArtifactFluent.Accessibility
- Method SequenceArtifactFluent.ExportFormats
- Method SequenceArtifactFluent.Height
- Method SequenceArtifactFluent.Id
- Method SequenceArtifactFluent.Layout
- Method SequenceArtifactFluent.Padding
- Method SequenceArtifactFluent.Paint
- Method SequenceArtifactFluent.Subtitle
- Method SequenceArtifactFluent.Theme
- Method SequenceArtifactFluent.ThemeMode
- Method SequenceArtifactFluent.Title
- Method SequenceArtifactFluent.Typography
- Method SequenceArtifactFluent.Width
- Extension method VisualArtifactInterchangeEnvelope.ToSequenceArtifact
- Method VisualArtifactInterchangeMapping.ToSequenceArtifact
Accepted by parameters 38
- Method HtmlSequenceNavigation.ToNavigationHtmlPage
- Method InteractiveDiagramExtensions.ToInteractiveHtmlFragment
- Method InteractiveDiagramExtensions.ToInteractiveHtmlPage
- Extension method SequenceArtifact.Accessibility
- Extension method SequenceArtifact.ExportFormats
- Extension method SequenceArtifact.Height
- Extension method SequenceArtifact.Id
- Extension method SequenceArtifact.Layout
- Extension method SequenceArtifact.Padding
- Extension method SequenceArtifact.Paint
- Extension method SequenceArtifact.Subtitle
- Extension method SequenceArtifact.Theme
- Extension method SequenceArtifact.ThemeMode
- Extension method SequenceArtifact.Title
- Extension method SequenceArtifact.ToInteractiveHtmlFragment
- Extension method SequenceArtifact.ToInteractiveHtmlPage
- Extension method SequenceArtifact.ToNavigationHtmlPage
- Extension method SequenceArtifact.ToPng
- Extension method SequenceArtifact.ToSvg
- Extension method SequenceArtifact.ToVisualArtifact
- Extension method SequenceArtifact.Typography
- Extension method SequenceArtifact.Width
- Method SequenceArtifactFluent.Accessibility
- Method SequenceArtifactFluent.ExportFormats
- Method SequenceArtifactFluent.Height
- Method SequenceArtifactFluent.Id
- Method SequenceArtifactFluent.Layout
- Method SequenceArtifactFluent.Padding
- Method SequenceArtifactFluent.Paint
- Method SequenceArtifactFluent.Subtitle
- Method SequenceArtifactFluent.Theme
- Method SequenceArtifactFluent.ThemeMode
- Method SequenceArtifactFluent.Title
- Method SequenceArtifactFluent.Typography
- Method SequenceArtifactFluent.Width
- Method SequenceArtifactRendering.ToPng
- Method SequenceArtifactRendering.ToSvg
- Method SequenceArtifactRendering.ToVisualArtifact
Constructors
public SequenceArtifact() #Methods
public SequenceArtifact AddActivation(string participantId, bool active, int stepIndex) #Adds a standalone participant activation or deactivation.
Parameters
- participantId string
- active bool
- stepIndex int
Returns
SequenceArtifactpublic 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
- text string
- startStepIndex int
- endStepIndex int
- isEmpty bool = false
- depth int = 0
Returns
SequenceArtifactpublic 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
- kind string
- text string
- startStepIndex int
- endStepIndex int
- depth int = 0
- isEmpty bool = false
Returns
SequenceArtifactpublic SequenceArtifact AddMessage(string sourceId, string targetId, string? text = null, SequenceArtifactMessageLineStyle lineStyle = Solid, SequenceArtifactMessageKind kind = Call) #Adds a message.
Parameters
- sourceId string
- targetId string
- text string? = null
- lineStyle ChartForgeX.VisualArtifacts.SequenceArtifactMessageLineStyle = Solid
- kind ChartForgeX.VisualArtifacts.SequenceArtifactMessageKind = Call
Returns
SequenceArtifactpublic SequenceArtifact AddNote(SequenceArtifactNotePlacement placement, IEnumerable<string> participantIds, string text) #Adds a note.
Parameters
- placement ChartForgeX.VisualArtifacts.SequenceArtifactNotePlacement
- participantIds System.Collections.Generic.IEnumerable<string>
- text string
Returns
SequenceArtifactpublic SequenceArtifact AddParticipant(string id, string? label = null, SequenceArtifactParticipantKind kind = Participant) #Adds or updates a participant.
Parameters
- id string
- label string? = null
- kind ChartForgeX.VisualArtifacts.SequenceArtifactParticipantKind = Participant
Returns
SequenceArtifactpublic 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
- label string
- firstParticipantIndex int
- lastParticipantIndex int
- fill ChartForgeX.Primitives.ChartColor? = null
Returns
SequenceArtifactpublic static SequenceArtifact Create(string id) #Creates a sequence artifact.
Parameters
- id string
Returns
SequenceArtifactpublic PreparedVisual Prepare(VisualRenderContext context) #Prepares measured participants, messages, activations, notes and interaction fragments into a detached native scene.
Parameters
- context ChartForgeX.Rendering.VisualRenderContext
Returns
PreparedVisualInherited Methods
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 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 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
- The instance.
- configure System.Action<ChartForgeX.Accessibility.VisualAccessibility>
- Configures the value.
public static SequenceArtifact ExportFormats(SequenceArtifact sequenceArtifact, VisualArtifactExportFormat value) #Sets SequenceArtifact.ExportFormats: Gets or sets supported static export formats.
Parameters
- sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact
- The instance.
- value ChartForgeX.VisualArtifacts.VisualArtifactExportFormat
- The value.
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
- The instance.
- value double
- The value.
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
- The instance.
- value string
- The value.
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
- The instance.
- value ChartForgeX.VisualArtifacts.SequenceLayoutPolicy?
- The value.
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
- The instance.
- value double
- The value.
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
- The instance.
- configure System.Action<ChartForgeX.VisualArtifacts.SequenceArtifactPaint>
- Configures the value.
public static SequenceArtifact Subtitle(SequenceArtifact sequenceArtifact, string value) #Sets SequenceArtifact.Subtitle: Gets or sets the sequence subtitle.
Parameters
- sequenceArtifact ChartForgeX.VisualArtifacts.SequenceArtifact
- The instance.
- value string
- The value.
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
- The instance.
- value ChartForgeX.Themes.VisualTheme
- The value.
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
- The instance.
- value ChartForgeX.ThemeMode
- The value.
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
- The instance.
- value string
- The value.
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
- The sequence to render.
- context ChartForgeX.Rendering.VisualRenderContext? = null
- Optional size, theme and frame; omitted uses the sequence's natural size and theme.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlInteractiveDiagramOptions>? = null
- Optional localization and content security policy settings.
Returns
stringpublic 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
- The sequence to render.
- context ChartForgeX.Rendering.VisualRenderContext? = null
- Optional size, theme and frame; omitted uses the sequence's natural size and theme.
- configure System.Action<ChartForgeX.Interactivity.Html.HtmlInteractiveDiagramOptions>? = null
- Optional localization and content security policy settings.
Returns
stringpublic static byte[] ToPng(SequenceArtifact sequence) #Renders the same native measured sequence scene directly to PNG.
Parameters
- sequence ChartForgeX.VisualArtifacts.SequenceArtifact
- 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
- 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
- The sequence source model.
- sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native
- 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
- The instance.
- value ChartForgeX.VisualArtifacts.SequenceTypography?
- The value.
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
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.VisualArtifacts.SequenceArtifact { Width = value }; sequenceArtifact.Width(value);