Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ReaderVisual

OfficeIMO.Reader

Namespace
OfficeIMO.Reader
Assembly
OfficeIMO.Reader.Core
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Minimal visual fence model for ingestion (kind + original language + payload).

Inheritance

  • object
  • ReaderVisual

Usage

Explore 11 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.

Accepted by parameters 4

Constructors

public ReaderVisual() #

Properties

public string Kind { get; set; } #

Normalized visual kind (for example: "mermaid", "chart", or "network").

public string Language { get; set; } #

Original fenced-code language label from markdown (for example: "ix-chart").

public string Content { get; set; } #

Raw visual payload/content from inside the fenced block.

public string? PayloadHash { get; set; } #

Optional stable short hash derived from ReaderVisual.Content.

public ReaderLocation? Location { get; set; } #

Optional source location for the extracted visual.

public string? SourceName { get; set; } #

Optional source-specific visual name, for example a PDF image resource name.

public string? MimeType { get; set; } #

Optional MIME type when the visual source exposes one.

public double? Width { get; set; } #

Intrinsic visual width in source units or pixels, when available.

public double? Height { get; set; } #

Intrinsic visual height in source units or pixels, when available.

public double? X { get; set; } #

Left or X coordinate of the placed visual in source units, when available.

public double? Y { get; set; } #

Bottom or Y coordinate of the placed visual in source units, when available.

public double? PlacedWidth { get; set; } #

Placed visual width in source units, when available.

public double? PlacedHeight { get; set; } #

Placed visual height in source units, when available.

public int PlacementCount { get; set; } #

Number of detected placement instances represented by this visual.

public bool HasGeometry { get; set; } #

True when source placement geometry was available.

public bool? IsAxisAligned { get; set; } #

True when source placement geometry was axis-aligned, when known.

Extension Methods

public static string ToJson(ReaderVisual visual, bool indented = false) #

Serializes a reader visual as deterministic JSON.

Parameters

visual OfficeIMO.Reader.ReaderVisual required
Visual to serialize.
indented bool = false optional
When true, writes indented JSON for diagnostics and fixtures.

Returns

string