# TextTrimming

Defines how overflowing text is represented.

 Enum  

`ChartForgeX.Typography`

**Namespace**

`ChartForgeX.Typography`

**Assembly**

`ChartForgeX`

**Source**

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

**Base**

`Enum`

**Implements**

 `IComparable` `ISpanFormattable` `IFormattable` `IConvertible` 

**Modifiers**

sealed

Defines how overflowing text is represented.

## Inheritance

- Enum
- TextTrimming

## Usage

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

- Property [ChartTreemapOptions.LabelTrimming](/api/chartforgex-core-charttreemapoptions/#property-labeltrimming)
- Field [TextTrimming.Ellipsis](/api/chartforgex-typography-texttrimming/#field-ellipsis)
- Field [TextTrimming.None](/api/chartforgex-typography-texttrimming/#field-none)

### Accepted by parameters 4

- Method [ImageComposition.DrawText](/api/chartforgex-composition-imagecomposition/#method-drawtext-double-double-double-string-chartforgex-typography-textstyle-chartforgex-typography-textwrapmode-nullable-system-int32-chartforgex-typography-texttrimming) parameter `trimming`
- Extension method [ChartTreemapOptions.LabelTrimming](/api/chartforgex-core-charttreemapoptions/#extension-labeltrimming-chartforgex-core-charttreemapoptions-chartforgex-typography-texttrimming) parameter `value`
- Method [ChartTreemapOptionsFluent.LabelTrimming](/api/chartforgex-core-charttreemapoptionsfluent/#method-labeltrimming-chartforgex-core-charttreemapoptions-chartforgex-typography-texttrimming) parameter `value`
- 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) parameter `trimming`

 Filter members   

    Show inherited   

 

## Inherited Methods

 `public int CompareTo(object? target)` [#](#method-compareto-object) 

Inherited from Enum

Parameters

**target object? required**

Returns

 `int` 

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

Inherited from Enum

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from Enum

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

 `public TypeCode GetTypeCode()` [#](#method-gettypecode) 

Inherited from Enum

Returns

 `TypeCode` 

 `public bool HasFlag(Enum flag)` [#](#method-hasflag-enum) 

Inherited from Enum

Parameters

**flag Enum required**

Returns

 `bool` 

 ToString 4 overloads 

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

Inherited from Enum

Returns

 `string` 

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

Inherited from Enum

Parameters

**format string? required**

Returns

 `string` 

 `public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString() instead.")` 

Parameters

**provider IFormatProvider? required**

Returns

 `string` 

 `public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString(String) instead.")` 

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

 `string` 

## Values

 `public const TextTrimming None` [#](#field-none) 

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

Clip the layout without adding a marker.

Value: `0`

 `public const TextTrimming Ellipsis` [#](#field-ellipsis) 

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

Fit an ellipsis at the end of the final visible line.

Value: `1`

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