Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlRenderSurface

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

Immutable executable view over one retained HTML output surface. Preview, geometry, automation, and encoder consumers share this view and its source mapping.

Inheritance

  • Object
  • HtmlRenderSurface

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

CreateDrawing 2 overloads
public OfficeDrawing CreateDrawing() #
Returns: OfficeDrawing

Creates a detached Drawing preview of this surface.

public OfficeDrawing CreateDrawing(CancellationToken cancellationToken) #
Returns: OfficeDrawing

Creates a detached Drawing preview with cooperative cancellation.

Parameters

cancellationToken System.Threading.CancellationToken requiredposition: 0
HitTest 2 overloads
public HtmlRenderHitTestReport HitTest(HtmlRenderPoint point, HtmlRenderHitTestOptions options = null, CancellationToken cancellationToken = default) #
Returns: HtmlRenderHitTestReport

Runs a bounded, topmost-first hit test against the retained scene.

Parameters

point OfficeIMO.Html.HtmlRenderPoint requiredposition: 0
options OfficeIMO.Html.HtmlRenderHitTestOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
public HtmlRenderHitTestReport HitTest(Double x, Double y, HtmlRenderHitTestOptions options = null, CancellationToken cancellationToken = default) #
Returns: HtmlRenderHitTestReport

Runs a bounded, topmost-first hit test at finite surface coordinates.

Parameters

x System.Double requiredposition: 0
y System.Double requiredposition: 1
options OfficeIMO.Html.HtmlRenderHitTestOptions = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
public HtmlRenderHitTestResult HitTestTopmost(HtmlRenderPoint point, HtmlRenderHitTestOptions options = null, CancellationToken cancellationToken = default) #
Returns: HtmlRenderHitTestResult

Returns the topmost matching visual, or null.

Parameters

point OfficeIMO.Html.HtmlRenderPoint requiredposition: 0
options OfficeIMO.Html.HtmlRenderHitTestOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
TryMapToSource 2 overloads
public Boolean TryMapToSource(HtmlRenderPoint outputPoint, out HtmlRenderSourcePoint sourcePoint) #
Returns: Boolean

Maps an output point to the source page or source-canvas slice.

Parameters

outputPoint OfficeIMO.Html.HtmlRenderPoint requiredposition: 0
sourcePoint OfficeIMO.Html.HtmlRenderSourcePoint@ requiredposition: 1
public Boolean TryMapToSource(Double x, Double y, out HtmlRenderSourcePoint sourcePoint) #
Returns: Boolean

Maps finite output coordinates to the source page or source-canvas slice.

Parameters

x System.Double requiredposition: 0
y System.Double requiredposition: 1
sourcePoint OfficeIMO.Html.HtmlRenderSourcePoint@ requiredposition: 2

Properties

public Int32 OutputIndex { get; } #

Zero-based position in the resolved output set.

public HtmlRenderPage Page { get; } #

Retained backend-neutral page and display list.

public HtmlRenderSurfaceResult Descriptor { get; } #

Output geometry, clipping, and source-placement descriptor.

public HtmlRenderRectangle Bounds { get; } #

Complete output-surface rectangle.

public Double RequestedScale { get; } #

Requested output scale before bounded encoder reduction.

public OfficeColor BackgroundColor { get; } #

Requested preview and image background.