# OfficeTextAreaAlignment

Horizontal placement of a paragraph text area inside its padded drawing frame.

Enum 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OfficeTextAreaAlignment.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextAreaAlignment.cs#L4)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Horizontal placement of a paragraph text area inside its padded drawing frame.

## Inheritance

- Enum
- OfficeTextAreaAlignment

## Usage

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

- Property [OfficeDrawingRichText.TextAreaAlignment](/api/core/officeimo-drawing-officedrawingrichtext/#property-textareaalignment)
- Field [OfficeTextAreaAlignment.Center](/api/core/officeimo-drawing-officetextareaalignment/#field-center)
- Field [OfficeTextAreaAlignment.FullWidth](/api/core/officeimo-drawing-officetextareaalignment/#field-fullwidth)
- Field [OfficeTextAreaAlignment.Left](/api/core/officeimo-drawing-officetextareaalignment/#field-left)
- Field [OfficeTextAreaAlignment.Right](/api/core/officeimo-drawing-officetextareaalignment/#field-right)

### Accepted by parameters 1

- Method [OfficeDrawing.AddRichTextParagraphs](/api/core/officeimo-drawing-officedrawing/#method-addrichtextparagraphs-collections-generic-ireadonlylist-officeimo-drawing-officerichtextparagraph-double-double-double-double-officeimo-drawing-officetextareaalignment-officeimo-drawing-officetextverticalalignment-boolean-nullable-officeimo-drawing-officetextpadding) parameter `areaAlignment`

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 OfficeTextAreaAlignment FullWidth` [#](#field-fullwidth)

[OfficeTextAreaAlignment.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextAreaAlignment.cs#L6)

Use the entire content width for paragraph alignment and wrapping.

Value: `0`

`public const OfficeTextAreaAlignment Left` [#](#field-left)

[OfficeTextAreaAlignment.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextAreaAlignment.cs#L9)

Place the measured paragraph area at the content rectangle's left edge.

Value: `1`

`public const OfficeTextAreaAlignment Center` [#](#field-center)

[OfficeTextAreaAlignment.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextAreaAlignment.cs#L12)

Center the measured paragraph area inside the content rectangle.

Value: `2`

`public const OfficeTextAreaAlignment Right` [#](#field-right)

[OfficeTextAreaAlignment.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextAreaAlignment.cs#L15)

Place the measured paragraph area at the content rectangle's right edge.

Value: `3`

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