# OfficeTextShapingResult

A shaped glyph run in visual write order.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeTextShaping.cs:334](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L334)

**Modifiers**

sealed

A shaped glyph run in visual write order.

## Inheritance

- object
- OfficeTextShapingResult

## Usage

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

- Method [IOfficeTextShapingProvider.ShapeText](/api/core/officeimo-drawing-iofficetextshapingprovider/#method-shapetext-officeimo-drawing-officetextshapingrequest)
- Method [OfficeManagedTextShapingProvider.ShapeText](/api/core/officeimo-drawing-officemanagedtextshapingprovider/#method-shapetext-officeimo-drawing-officetextshapingrequest)

### Accepted by parameters 3

- Method [IOfficeBoundedFontProgram.GetShapedTextContoursBounded](/api/core/officeimo-drawing-iofficeboundedfontprogram/#method-getshapedtextcontoursbounded-string-officeimo-drawing-officetextshapingresult-double-double-double-int32-threading-cancellationtoken) parameter `result`
- Method [IOfficeFontProgram.GetShapedTextContours](/api/core/officeimo-drawing-iofficefontprogram/#method-getshapedtextcontours-string-officeimo-drawing-officetextshapingresult-double-double-double) parameter `result`
- Method [IOfficeFontProgram.MeasureShapedText](/api/core/officeimo-drawing-iofficefontprogram/#method-measureshapedtext-string-officeimo-drawing-officetextshapingresult-double) parameter `result`

Filter members 

Show inherited

## Constructors

OfficeTextShapingResult 2 overloads

`public OfficeTextShapingResult(IEnumerable<OfficeShapedGlyph> glyphs)` [#](#constructor-ctor-collections-generic-ienumerable-officeimo-drawing-officeshapedglyph)

[OfficeTextShaping.cs:334](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L334)

Creates an immutable result from shaped glyph mappings.

Parameters

**glyphs System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficeShapedGlyph> required**

`public OfficeTextShapingResult(IEnumerable<OfficeShapedGlyph> glyphs, OfficeTextDirection direction)` [#](#constructor-ctor-collections-generic-ienumerable-officeimo-drawing-officeshapedglyph-officeimo-drawing-officetextdirection)

[OfficeTextShaping.cs:339](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L339)

Creates an immutable result from shaped glyph mappings and their resolved write direction.

Parameters

**glyphs System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficeShapedGlyph> required**

**direction OfficeIMO.Drawing.OfficeTextDirection required**

## 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 IReadOnlyList<OfficeShapedGlyph> Glyphs { get; }` [#](#property-glyphs)

[OfficeTextShaping.cs:378](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L378)

Glyph identifiers, source mappings, advances, and offsets.

`public OfficeTextDirection Direction { get; }` [#](#property-direction)

[OfficeTextShaping.cs:381](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L381)

Resolved write direction. Auto preserves the legacy direction-neutral result contract.

<!-- PowerForge markdown artifact sha256:5A263A1FD99EF52B175C34C8247838E23619F549AB9BB8F472CEA53AB7A55FFC -->
