# OfficeTextVerticalAlignment

Vertical alignment for reusable OfficeIMO drawing text.

Enum 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeTextVerticalAlignment.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextVerticalAlignment.cs#L6)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Vertical alignment for reusable OfficeIMO drawing text.

## Inheritance

- Enum
- OfficeTextVerticalAlignment

## Usage

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

- Property [OfficeDrawingRichText.VerticalAlignment](/api/core/officeimo-drawing-officedrawingrichtext/#property-verticalalignment)
- Property [OfficeDrawingText.VerticalAlignment](/api/core/officeimo-drawing-officedrawingtext/#property-verticalalignment)
- Property [OfficeRasterTextOptions.VerticalAlignment](/api/core/officeimo-drawing-officerastertextoptions/#property-verticalalignment)
- Property [OfficeTextBlockRenderPlan.VerticalAlignment](/api/core/officeimo-drawing-officetextblockrenderplan/#property-verticalalignment)
- Field [OfficeTextVerticalAlignment.Bottom](/api/core/officeimo-drawing-officetextverticalalignment/#field-bottom)
- Field [OfficeTextVerticalAlignment.Center](/api/core/officeimo-drawing-officetextverticalalignment/#field-center)
- Field [OfficeTextVerticalAlignment.Top](/api/core/officeimo-drawing-officetextverticalalignment/#field-top)

### Accepted by parameters 21

- Method [OfficeDrawing.AddClippedText](/api/core/officeimo-drawing-officedrawing/#method-addclippedtext-string-double-double-double-double-double-double-officeimo-drawing-officeclippath-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `verticalAlignment`
- Method [OfficeDrawing.AddRichText](/api/core/officeimo-drawing-officedrawing/#method-addrichtext-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-double-double-double-double-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `verticalAlignment`
- Method [OfficeDrawing.AddRichTextBehindContent](/api/core/officeimo-drawing-officedrawing/#method-addrichtextbehindcontent-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-double-double-double-double-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `verticalAlignment`
- Method [OfficeDrawing.AddRichTextParagraphs](/api/core/officeimo-drawing-officedrawing/#method-addrichtextparagraphs-collections-generic-ireadonlylist-officeimo-drawing-officerichtextparagraph-double-double-double-double-officeimo-drawing-officetextverticalalignment-boolean-nullable-officeimo-drawing-officetextpadding) parameter `verticalAlignment`
- Method [OfficeDrawing.AddStyledText](/api/core/officeimo-drawing-officedrawing/#method-addstyledtext-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `verticalAlignment`
- Method [OfficeDrawing.AddText](/api/core/officeimo-drawing-officedrawing/#method-addtext-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `verticalAlignment`
- Method [OfficeDrawing.AddTextBehindContent](/api/core/officeimo-drawing-officedrawing/#method-addtextbehindcontent-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `verticalAlignment`
- Constructor [OfficeDrawingRichText.OfficeDrawingRichText](/api/core/officeimo-drawing-officedrawingrichtext/#constructor-ctor-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-double-double-double-double-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `verticalAlignment`
- Constructor [OfficeDrawingText.OfficeDrawingText](/api/core/officeimo-drawing-officedrawingtext/#constructor-ctor-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderer.AppendSvgRichTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-appendsvgrichtextblock-text-stringbuilder-officeimo-drawing-officerichtextblocklayout-double-double-double-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-double-double-double-boolean) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderer.AppendSvgStyledTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-appendsvgstyledtextblock-text-stringbuilder-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-officecolor-string-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-boolean-boolean-boolean-double-double-double-boolean-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline-nullable-officeimo-officecolor) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderer.AppendSvgTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-appendsvgtextblock-text-stringbuilder-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-officecolor-string-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-boolean-boolean-boolean-double-double-double-boolean-boolean) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderer.DrawRasterRichTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-drawrasterrichtextblock-officeimo-drawing-officerastercanvas-officeimo-drawing-officerichtextblocklayout-double-double-double-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-double-double-double-boolean-boolean-boolean) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderer.DrawRasterTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-drawrastertextblock-officeimo-drawing-officerastercanvas-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-officecolor-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-boolean-boolean-boolean-double-double-double-boolean-double-boolean-string-boolean-boolean-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline-nullable-officeimo-officecolor) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderer.DrawRasterTextBox](/api/core/officeimo-drawing-officetextblockrenderer/#method-drawrastertextbox-officeimo-drawing-officerastercanvas-officeimo-drawing-officetextblockrenderplan-officeimo-officecolor-boolean-boolean-boolean-nullable-officeimo-drawing-officetextalignment-nullable-officeimo-drawing-officetextverticalalignment-double-double-double-nullable-officeimo-officecolor-double-double-boolean-double-boolean-string) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderer.WriteSvgTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-writesvgtextblock-xml-xmlwriter-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-officecolor-string-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-boolean-boolean-boolean-double-double-double-string-action-system-xml-xmlwriter-boolean) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderPlan.CreateFittedFromCenter](/api/core/officeimo-drawing-officetextblockrenderplan/#method-createfittedfromcenter-string-double-double-double-double-double-func-system-string-system-double-system-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-double-double) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderPlan.CreateFromCenter](/api/core/officeimo-drawing-officetextblockrenderplan/#method-createfromcenter-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderPlan.CreateFromRectangle](/api/core/officeimo-drawing-officetextblockrenderplan/#method-createfromrectangle-officeimo-drawing-officetextblocklayout-double-double-double-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderPlan.CreateStackedTextBlockFromRectangle](/api/core/officeimo-drawing-officetextblockrenderplan/#method-createstackedtextblockfromrectangle-string-double-double-double-double-double-func-system-string-system-double-system-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-double-double-boolean) parameter `verticalAlignment`
- Method [OfficeTextBlockRenderPlan.CreateTextBlockFromRectangle](/api/core/officeimo-drawing-officetextblockrenderplan/#method-createtextblockfromrectangle-string-double-double-double-double-double-func-system-string-system-double-system-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-double-double-boolean-boolean-boolean-officeimo-drawing-officetextoverflowbehavior) parameter `verticalAlignment`

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 OfficeTextVerticalAlignment Top` [#](#field-top)

[OfficeTextVerticalAlignment.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextVerticalAlignment.cs#L8)

Align text to the top edge of the text box.

Value: `0`

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

[OfficeTextVerticalAlignment.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextVerticalAlignment.cs#L11)

Center text inside the text box.

Value: `1`

`public const OfficeTextVerticalAlignment Bottom` [#](#field-bottom)

[OfficeTextVerticalAlignment.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextVerticalAlignment.cs#L14)

Align text to the bottom edge of the text box.

Value: `2`

<!-- PowerForge markdown artifact sha256:267C086C2566A99DEEFAF294CE8610F126E38DBF5DA2FE5ABAE76B06613914AF -->
