ReaderVisual
OfficeIMO.Reader
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.
Returned or exposed by 7
- Extension method OfficeDocumentReadResult.EnumerateVisuals
- Extension method OfficeDocumentReadResult.ExtractVisuals
- Property OfficeDocumentReadResult.Visuals
- Method OfficeDocumentReadResultExtensions.EnumerateVisuals
- Method OfficeDocumentReadResultExtensions.ExtractVisuals
- Property ReaderChunk.Visuals
- Property ReaderVisualExportBundle.Visual
Accepted by parameters 4
- Method OfficeDocumentReadResultExtensions.ExportVisuals
- Extension method ReaderVisual.ToJson
- Method ReaderVisualExport.GetPayloadExtension
- Method ReaderVisualExport.ToJson
Constructors
public ReaderVisual() #Inherited Methods
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
- Visual to serialize.
- indented bool = false
- When true, writes indented JSON for diagnostics and fixtures.
Returns
string