# TextLayout

Contains deterministic lines and dimensions produced by text layout.

 Class  

`ChartForgeX.Typography`

**Namespace**

`ChartForgeX.Typography`

**Assembly**

`ChartForgeX`

**Source**

[TextLayoutModels.cs:70](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextLayoutModels.cs#L70)

**Modifiers**

sealed

Contains deterministic lines and dimensions produced by text layout.

## Inheritance

- object
- TextLayout

## 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 1

- Method [TextLayoutEngine.Layout](/api/chartforgex-typography-textlayoutengine/#method-layout-chartforgex-typography-textcontent-double-chartforgex-typography-textstyle-chartforgex-typography-textwrapmode-nullable-system-int32-chartforgex-typography-texttrimming)

### Accepted by parameters 1

- Method [ImageComposition.DrawTextLayout](/api/chartforgex-composition-imagecomposition/#method-drawtextlayout-double-double-double-chartforgex-typography-textlayout-chartforgex-typography-textstyle) parameter `layout`

 Filter members   

    Show inherited   

 

## 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<TextLayoutLine> Lines { get; }` [#](#property-lines) 

[TextLayoutModels.cs:70](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextLayoutModels.cs#L70)

Gets the laid out lines.

 `public TextMetrics Metrics { get; }` [#](#property-metrics) 

[TextLayoutModels.cs:73](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextLayoutModels.cs#L73)

Gets the measured layout dimensions.

 `public bool Trimmed { get; }` [#](#property-trimmed) 

[TextLayoutModels.cs:76](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextLayoutModels.cs#L76)

Gets a value indicating whether content was removed to satisfy the line limit.

<!-- PowerForge markdown artifact sha256:49A29ECA8F8F3D70244FD6D44B1D1E3103163D7B866230012AE6CC0EE7CBBD7A -->
