# OdfTextFitMode

Native fitting of text within an OpenDocument shape's saved frame.

Enum 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OdfTextFitMode.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfTextFitMode.cs#L4)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Native fitting of text within an OpenDocument shape's saved frame.

## Inheritance

- Enum
- OdfTextFitMode

## Usage

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

- Property [OdfShape.TextFitMode](/api/open-document/officeimo-opendocument-odfshape/#property-textfitmode)
- Field [OdfTextFitMode.None](/api/open-document/officeimo-opendocument-odftextfitmode/#field-none)
- Field [OdfTextFitMode.ShrinkToFit](/api/open-document/officeimo-opendocument-odftextfitmode/#field-shrinktofit)
- Field [OdfTextFitMode.Stretch](/api/open-document/officeimo-opendocument-odftextfitmode/#field-stretch)
- Property [OdgShape.TextFitMode](/api/open-document/officeimo-opendocument-odgshape/#property-textfitmode)
- Property [OdpEllipse.TextFitMode](/api/open-document/officeimo-opendocument-odpellipse/#property-textfitmode)
- Property [OdpGroup.TextFitMode](/api/open-document/officeimo-opendocument-odpgroup/#property-textfitmode)
- Property [OdpImage.TextFitMode](/api/open-document/officeimo-opendocument-odpimage/#property-textfitmode)
- Property [OdpLine.TextFitMode](/api/open-document/officeimo-opendocument-odpline/#property-textfitmode)
- Property [OdpRectangle.TextFitMode](/api/open-document/officeimo-opendocument-odprectangle/#property-textfitmode)
- Property [OdpShape.TextFitMode](/api/open-document/officeimo-opendocument-odpshape/#property-textfitmode)
- Property [OdpTable.TextFitMode](/api/open-document/officeimo-opendocument-odptable/#property-textfitmode)
- Property [OdpTextBox.TextFitMode](/api/open-document/officeimo-opendocument-odptextbox/#property-textfitmode)

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 OdfTextFitMode None` [#](#field-none)

[OdfTextFitMode.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfTextFitMode.cs#L6)

Uses the declared font sizes without fitting text to the frame.

Value: `0`

`public const OdfTextFitMode Stretch` [#](#field-stretch)

[OdfTextFitMode.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfTextFitMode.cs#L8)

Stretches text to the frame; shared drawing projection does not reproduce this native mode.

Value: `1`

`public const OdfTextFitMode ShrinkToFit` [#](#field-shrinktofit)

[OdfTextFitMode.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Drawing/OdfTextFitMode.cs#L10)

Reduces text size to fit a fixed frame, without enlarging its saved geometry.

Value: `2`

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