# HtmlRenderSurfaceResult

One output surface retained by a resolved HTML render request.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[HtmlRenderResult.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L84)

**Modifiers**

sealed

One output surface retained by a resolved HTML render request.

## Inheritance

- object
- HtmlRenderSurfaceResult

## Usage

Explore 2 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 2

- Property [HtmlRenderResult.Surfaces](/api/html/officeimo-html-htmlrenderresult/#property-surfaces)
- Property [HtmlRenderSurface.Descriptor](/api/html/officeimo-html-htmlrendersurface/#property-descriptor)

Filter members 

Show inherited

## Methods

TryMapToSource 2 overloads

`public bool TryMapToSource(HtmlRenderPoint outputPoint, out HtmlRenderSourcePoint? sourcePoint)` [#](#method-trymaptosource-officeimo-html-htmlrenderpoint-officeimo-html-htmlrendersourcepoint)

[HtmlRenderResult.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L84)

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

Parameters

**outputPoint OfficeIMO.Html.HtmlRenderPoint required**

**sourcePoint OfficeIMO.Html.HtmlRenderSourcePoint? required**

Returns

`bool`

`public bool TryMapToSource(double outputX, double outputY, out HtmlRenderSourcePoint? sourcePoint)` [#](#method-trymaptosource-double-double-officeimo-html-htmlrendersourcepoint)

[HtmlRenderResult.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L103)

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

Parameters

**outputX double required**

**outputY double required**

**sourcePoint OfficeIMO.Html.HtmlRenderSourcePoint? required**

Returns

`bool`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int OutputIndex { get; }` [#](#property-outputindex)

[HtmlRenderResult.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L64)

Zero-based position in the resolved output set.

`public int SourcePageNumber { get; }` [#](#property-sourcepagenumber)

[HtmlRenderResult.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L66)

One-based page number in the preselection render.

`public double Width { get; }` [#](#property-width)

[HtmlRenderResult.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L68)

Surface width in CSS pixels.

`public double Height { get; }` [#](#property-height)

[HtmlRenderResult.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L70)

Surface height in CSS pixels.

`public double SourceOffsetX { get; }` [#](#property-sourceoffsetx)

[HtmlRenderResult.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L72)

Horizontal offset into the original completed layout.

`public double SourceOffsetY { get; }` [#](#property-sourceoffsety)

[HtmlRenderResult.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L74)

Vertical offset into the original completed layout.

`public bool IsClipped { get; }` [#](#property-isclipped)

[HtmlRenderResult.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L76)

Whether this surface clips a viewport, page slice, or stitched source page.

`public IReadOnlyList<HtmlRenderSourcePlacement> SourcePlacements { get; }` [#](#property-sourceplacements)

[HtmlRenderResult.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L78)

Every source page or slice contributing to this output surface.

`public HtmlRenderRectangle Bounds { get; }` [#](#property-bounds)

[HtmlRenderResult.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Rendering/HtmlRenderResult.cs#L80)

Complete output-surface rectangle.

<!-- PowerForge markdown artifact sha256:C7B3D534335E35E0445DCA67C9C210DF4398196CCC060C786AD49B8F378EEC3F -->
