API Reference
VisualArtifact
Describes one product-neutral visual artifact that can be rendered, inspected, exported, or handed to a host adapter.
Inheritance
- Object
- VisualArtifact
Usage
Explore 109 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 81
- Extension method VisualCanvas.ToVisualArtifact
- Extension method Chart.ToVisualArtifact
- Extension method ChartGrid.ToVisualArtifact
- Property VisualMarkupParseResult.Artifacts
- Extension method MermaidArchitectureDocument.ToVisualArtifact
- Method MermaidArchitectureRendering.ToVisualArtifact
- Extension method MermaidBlockDocument.ToVisualArtifact
- Method MermaidBlockRendering.ToVisualArtifact
- Extension method MermaidC4Document.ToVisualArtifact
- Method MermaidC4Rendering.ToVisualArtifact
- Extension method MermaidClassDocument.ToVisualArtifact
- Extension method MermaidCynefinDocument.ToVisualArtifact
- Method MermaidCynefinRendering.ToVisualArtifact
- Extension method MermaidDocument.ToVisualArtifact
- Extension method MermaidEntityRelationshipDocument.ToVisualArtifact
- Extension method MermaidEventModelingDocument.ToVisualArtifact
- Method MermaidEventModelingRendering.ToVisualArtifact
- Extension method MermaidFlowchartDocument.ToVisualArtifact
- Method MermaidFlowchartRendering.ToVisualArtifact
- Extension method MermaidGanttDocument.ToVisualArtifact
- Method MermaidGanttRendering.ToVisualArtifact
- Extension method MermaidGitGraphDocument.ToVisualArtifact
- Method MermaidGitGraphRendering.ToVisualArtifact
- Extension method MermaidIshikawaDocument.ToVisualArtifact
- Method MermaidIshikawaRendering.ToVisualArtifact
- Extension method MermaidJourneyDocument.ToVisualArtifact
- Method MermaidJourneyRendering.ToVisualArtifact
- Extension method MermaidKanbanDocument.ToVisualArtifact
- Extension method MermaidMindMapDocument.ToVisualArtifact
- Extension method MermaidPacketDocument.ToVisualArtifact
- Method MermaidPacketRendering.ToVisualArtifact
- Extension method MermaidPieDocument.ToVisualArtifact
- Method MermaidPieRendering.ToVisualArtifact
- Extension method MermaidQuadrantDocument.ToVisualArtifact
- Method MermaidQuadrantRendering.ToVisualArtifact
- Extension method MermaidRadarDocument.ToVisualArtifact
- Method MermaidRadarRendering.ToVisualArtifact
- Method MermaidRenderer.ToVisualArtifact
- Property MermaidRenderResult.Artifact
- Extension method MermaidRequirementDocument.ToVisualArtifact
- Method MermaidRequirementRendering.ToVisualArtifact
- Extension method MermaidSankeyDocument.ToVisualArtifact
- Method MermaidSankeyRendering.ToVisualArtifact
- Extension method MermaidSequenceDocument.ToVisualArtifact
- Method MermaidSequenceRendering.ToVisualArtifact
- Extension method MermaidStateDocument.ToVisualArtifact
- Extension method MermaidTimelineDocument.ToVisualArtifact
- Method MermaidTimelineRendering.ToVisualArtifact
- Method MermaidTopologyRendering.ToVisualArtifact
- Extension method MermaidTreemapDocument.ToVisualArtifact
- Method MermaidTreemapRendering.ToVisualArtifact
- Extension method MermaidTreeViewDocument.ToVisualArtifact
- Extension method MermaidVennDocument.ToVisualArtifact
- Method MermaidVennRendering.ToVisualArtifact
- Extension method MermaidWardleyDocument.ToVisualArtifact
- Method MermaidWardleyRendering.ToVisualArtifact
- Extension method MermaidXYChartDocument.ToVisualArtifact
- Method MermaidXYChartRendering.ToVisualArtifact
- Extension method PreparedVisual.ToArtifact
- Method StoryArtifactExtensions.ToVisualArtifact
- Extension method VisualStory.ToVisualArtifact
- Extension method TerminalStory.ToVisualArtifact
- Extension method TopologyChart.ToVisualArtifact
- Method ChartArtifactRendering.ToVisualArtifact
- Method CompositeArtifactRendering.ToVisualArtifact
- Extension method FlowArtifact.ToVisualArtifact
- Method FlowArtifactRendering.ToVisualArtifact
- Extension method SequenceArtifact.ToVisualArtifact
- Method SequenceArtifactRendering.ToVisualArtifact
- Extension method TableArtifact.ToVisualArtifact
- Method TableArtifactRendering.ToVisualArtifact
- Method TopologyArtifactRendering.ToVisualArtifact
- Extension method VisualArtifact.ToWatermarkedArtifact
- Extension method VisualArtifact.WithWatermarks
- Method VisualArtifact.Clone
- Method VisualArtifact.Create
- Method VisualArtifactRendering.ToArtifact
- Method VisualCanvasArtifactRendering.ToVisualArtifact
- Method VisualWatermarkDecoration.ToWatermarkedArtifact
- Method VisualWatermarkDecoration.WithWatermarks
- Extension method IVisualBlock.ToVisualArtifact
Accepted by parameters 28
- Extension method VisualArtifact.SaveHtml
- Extension method VisualArtifact.SavePng
- Extension method VisualArtifact.SaveSvg
- Extension method VisualArtifact.ToHtmlPage
- Extension method VisualArtifact.ToInterchangeEnvelope
- Extension method VisualArtifact.ToInterchangeJson
- Extension method VisualArtifact.ToInterchangeUtf8Json
- Extension method VisualArtifact.ToPng
- Extension method VisualArtifact.ToRgbaImage
- Extension method VisualArtifact.ToSvg
- Extension method VisualArtifact.ToWatermarkedArtifact
- Extension method VisualArtifact.ToWatermarkedHtmlPage
- Extension method VisualArtifact.ToWatermarkedSvg
- Extension method VisualArtifact.WithWatermarks
- Method VisualArtifactInterchangeMapping.ToInterchangeEnvelope
- Method VisualArtifactInterchangeMapping.ToInterchangeJson
- Method VisualArtifactInterchangeMapping.ToInterchangeUtf8Json
- Method VisualArtifactRendering.SaveHtml
- Method VisualArtifactRendering.SavePng
- Method VisualArtifactRendering.SaveSvg
- Method VisualArtifactRendering.ToHtmlPage
- Method VisualArtifactRendering.ToPng
- Method VisualArtifactRendering.ToRgbaImage
- Method VisualArtifactRendering.ToSvg
- Method VisualWatermarkDecoration.ToWatermarkedArtifact
- Method VisualWatermarkDecoration.ToWatermarkedHtmlPage
- Method VisualWatermarkDecoration.ToWatermarkedSvg
- Method VisualWatermarkDecoration.WithWatermarks
Constructors
public VisualArtifact() #Methods
public VisualArtifact Clone() #VisualArtifactCopies the artifact's host envelope independently of its semantic model and static presentation.
Returns
A new artifact with independent metadata, accessibility, regions, and legend items.
public static VisualArtifact Create(String id, VisualArtifactKind kind, Object model) #VisualArtifactCreates a visual artifact envelope for a model.
Parameters
- id System.String
- kind ChartForgeX.VisualArtifacts.VisualArtifactKind
- model System.Object
public Boolean SupportsExport(VisualArtifactExportFormat format) #BooleanReturns true when the artifact declares support for the requested export format.
Parameters
- format ChartForgeX.VisualArtifacts.VisualArtifactExportFormat
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public String Id { get; set; } #Gets or sets a stable artifact identifier.
public VisualArtifactKind Kind { get; set; } #Gets or sets the artifact kind.
public VisualArtifactSourceLanguage SourceLanguage { get; set; } #Gets or sets the source language used to author the artifact.
public String Title { get; set; } #Gets or sets the artifact title.
public String Subtitle { get; set; } #Gets or sets the artifact subtitle.
public Object? Model { get; set; } #Gets or sets the renderer-independent artifact model.
public IStaticVisualSource? RenderSource { get; set; } #Gets or sets a producer-owned static presentation, independently of the semantic model.
public VisualArtifactExportFormat ExportFormats { get; set; } #Gets or sets the static export formats supported by this artifact.
public VisualArtifactSize? NaturalSize { get; set; } #Gets or sets the artifact's natural size in pixels when known.
public Boolean PreserveNaturalSize { get; set; } #Gets or sets a value indicating whether exporters must preserve VisualArtifact.NaturalSize when a renderer prepares content on a larger internal canvas.
public Dictionary<String, String> Metadata { get; } #Gets artifact metadata for host adapters and exporters.
public VisualAccessibility Accessibility { get; } #Gets renderer-independent accessibility metadata for host adapters and capable exporters.
public List<VisualArtifactRegion> Regions { get; } #Gets host-inspectable visual regions.
public List<VisualArtifactLegendItem> Legend { get; } #Gets legend items associated with the artifact.
Extension Methods
public static Void SaveHtml(VisualArtifact artifact, String path) #VoidSaves a supported visual artifact model to a standalone HTML page.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path System.String
- The target HTML path.
public static Void SaveHtml(VisualArtifact artifact, String path, VisualArtifactRenderOptions? options) #VoidSaves a supported visual artifact model to standalone HTML with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- path System.String
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static Void SavePng(VisualArtifact artifact, String path) #VoidSaves a supported visual artifact model to PNG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path System.String
- The target PNG path.
public static Void SavePng(VisualArtifact artifact, String path, VisualArtifactRenderOptions? options) #VoidSaves a supported visual artifact model to PNG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- path System.String
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static Void SaveSvg(VisualArtifact artifact, String path) #VoidSaves a supported visual artifact model to SVG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path System.String
- The target SVG path.
public static Void SaveSvg(VisualArtifact artifact, String path, VisualArtifactRenderOptions? options) #VoidSaves a supported visual artifact model to SVG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- path System.String
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static String ToHtmlPage(VisualArtifact artifact) #StringRenders a supported visual artifact model to a standalone HTML page.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
Returns
HTML markup.
public static String ToHtmlPage(VisualArtifact artifact, VisualArtifactRenderOptions? options) #StringRenders a supported visual artifact model to a standalone HTML page with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static VisualArtifactInterchangeEnvelope ToInterchangeEnvelope(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions = null) #VisualArtifactInterchangeEnvelopeCreates a versioned semantic interchange envelope for an artifact.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact to project.
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
- Optional topology preparation options used to capture deterministic coordinates.
Returns
A portable semantic envelope. Unsupported visual kinds retain common metadata and use their separately rendered SVG fallback.
public static String ToInterchangeJson(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions = null) #StringSerializes an artifact's semantic interchange envelope to deterministic JSON.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
public static Byte[] ToInterchangeUtf8Json(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions = null) #Byte[]Serializes an artifact's semantic interchange envelope to deterministic UTF-8 JSON bytes.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
public static Byte[] ToPng(VisualArtifact artifact) #Byte[]Renders a supported visual artifact model to PNG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
Returns
PNG bytes.
public static Byte[] ToPng(VisualArtifact artifact, VisualArtifactRenderOptions? options) #Byte[]Renders a supported visual artifact model to PNG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static RgbaImage ToRgbaImage(VisualArtifact artifact, VisualArtifactRenderOptions? options = null) #RgbaImageRenders an artifact directly to native pixels, before format encoding.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The source semantics and optional static presentation.
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
- Optional core rendering options. Raster encoding options apply when encoding the result.
Returns
A detached RGBA image at the producer's configured output density.
public static String ToSvg(VisualArtifact artifact) #StringRenders a supported visual artifact model to SVG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
Returns
SVG markup.
public static String ToSvg(VisualArtifact artifact, VisualArtifactRenderOptions? options) #StringRenders a supported visual artifact model to SVG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static String ToSvg(VisualArtifact artifact, VisualArtifactRenderOptions? options, String idScope) #StringRenders SVG with a caller-owned namespace for embedding several artifacts in one document.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- idScope System.String
public static VisualArtifact ToWatermarkedArtifact(VisualArtifact artifact, params VisualWatermark[] watermarks) #VisualArtifactCreates a detached artifact envelope with watermark presentation in declaration order.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
public static VisualArtifact ToWatermarkedArtifact(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions, params VisualWatermark[] watermarks) #VisualArtifactCreates a detached watermarked artifact with static presentation resolved using the supplied core options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
public static String ToWatermarkedHtmlPage(VisualArtifact artifact, String renderedSvg, params VisualWatermark[] watermarks) #StringWraps trusted, already-rendered SVG with watermarks in a standalone HTML page.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The unchanged host envelope supplying the title, language, and natural-size fallback.
- renderedSvg System.String
- A complete trusted SVG document supplied by a static or animated renderer.
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
- Watermarks captured in declaration order.
Returns
A standalone page containing the decorated SVG and the artifact's host title and language.
public static String ToWatermarkedSvg(VisualArtifact artifact, String renderedSvg, params VisualWatermark[] watermarks) #StringAppends watermark layers to trusted, already-rendered SVG without resolving the artifact's model.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The unchanged host envelope; its natural size is a fallback when SVG dimensions are absent.
- renderedSvg System.String
- A complete trusted SVG document supplied by a static or animated renderer.
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
- Watermarks captured in declaration order.
Returns
The supplied markup with watermark layers inserted before its closing SVG element.
public static VisualArtifact WithWatermarks(VisualArtifact artifact, params VisualWatermark[] watermarks) #VisualArtifactAppends a snapshot of the supplied watermarks in declaration order.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
public static VisualArtifact WithWatermarks(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions, params VisualWatermark[] watermarks) #VisualArtifactAppends watermark presentation over a static source resolved with the supplied core options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]