# TextAlignment

Defines horizontal text alignment inside a bounded layout region.

 Enum  

`ChartForgeX.Typography`

**Namespace**

`ChartForgeX.Typography`

**Assembly**

`ChartForgeX`

**Source**

[TextAlignment.cs:6](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextAlignment.cs#L6)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Defines horizontal text alignment inside a bounded layout region.

## Inheritance

- Enum
- TextAlignment

## Usage

 Explore 25 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 12

- Property [VisualCanvasHeroTitleLayer.Alignment](/api/chartforgex-composition-visualcanvasherotitlelayer/#property-alignment)
- Property [VisualCanvasTextLayer.Alignment](/api/chartforgex-composition-visualcanvastextlayer/#property-alignment)
- Field [TextAlignment.Center](/api/chartforgex-typography-textalignment/#field-center)
- Field [TextAlignment.Left](/api/chartforgex-typography-textalignment/#field-left)
- Field [TextAlignment.Right](/api/chartforgex-typography-textalignment/#field-right)
- Property [TextStyle.Alignment](/api/chartforgex-typography-textstyle/#property-alignment)
- Property [SequenceLayoutPolicy.MessageAlignment](/api/chartforgex-visualartifacts-sequencelayoutpolicy/#property-messagealignment)
- Property [SequenceLayoutPolicy.NoteAlignment](/api/chartforgex-visualartifacts-sequencelayoutpolicy/#property-notealignment)
- Property [TableArtifactColumn.Alignment](/api/chartforgex-visualartifacts-tableartifactcolumn/#property-alignment)
- Property [VisualArtifactInterchangeTableColumn.Alignment](/api/chartforgex-visualartifacts-visualartifactinterchangetablecolumn/#property-alignment)
- Property [ChartTableCell.Alignment](/api/chartforgex-visualblocks-charttablecell/#property-alignment)
- Property [ChartTableColumn.Alignment](/api/chartforgex-visualblocks-charttablecolumn/#property-alignment)

### Accepted by parameters 13

- Method [ImageComposition.DrawText](/api/chartforgex-composition-imagecomposition/#method-drawtext-double-double-double-string-double-chartforgex-primitives-chartcolor-chartforgex-typography-textalignment-boolean) parameter `alignment`
- Method [VisualCanvas.AddHeroTitle](/api/chartforgex-composition-visualcanvas/#method-addherotitle-double-double-double-double-collections-generic-ienumerable-chartforgex-composition-visualcanvastextrun-chartforgex-typography-textalignment) parameter `alignment`
- Method [VisualCanvas.AddText](/api/chartforgex-composition-visualcanvas/#method-addtext-double-double-double-string-double-chartforgex-typography-textalignment-boolean) parameter `alignment`
- Extension method [TextStyle.Alignment](/api/chartforgex-typography-textstyle/#extension-alignment-chartforgex-typography-textstyle-chartforgex-typography-textalignment) parameter `value`
- Method [TextStyleFluent.Alignment](/api/chartforgex-typography-textstylefluent/#method-alignment-chartforgex-typography-textstyle-chartforgex-typography-textalignment) parameter `value`
- Constructor [SequenceLayoutPolicy.SequenceLayoutPolicy](/api/chartforgex-visualartifacts-sequencelayoutpolicy/#constructor-ctor-nullable-chartforgex-primitives-chartpadding-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-chartforgex-typography-textalignment-nullable-chartforgex-typography-textalignment-nullable-chartforgex-visualartifacts-sequencenumberpresentation-nullable-chartforgex-visualartifacts-sequenceselfmessagerouting-nullable-system-double-nullable-system-double-nullable-system-double-chartforgex-visualartifacts-sequenceparticipantbands) parameter `messageAlignment`
- Constructor [SequenceLayoutPolicy.SequenceLayoutPolicy](/api/chartforgex-visualartifacts-sequencelayoutpolicy/#constructor-ctor-nullable-chartforgex-primitives-chartpadding-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-double-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-chartforgex-typography-textalignment-nullable-chartforgex-typography-textalignment-nullable-chartforgex-visualartifacts-sequencenumberpresentation-nullable-chartforgex-visualartifacts-sequenceselfmessagerouting-nullable-system-double-nullable-system-double-nullable-system-double-chartforgex-visualartifacts-sequenceparticipantbands) parameter `noteAlignment`
- Method [TableArtifact.AddColumn](/api/chartforgex-visualartifacts-tableartifact/#method-addcolumn-string-string-chartforgex-visualartifacts-tableartifactcolumntype-chartforgex-typography-textalignment-nullable-system-double) parameter `alignment`
- Constructor [TableArtifactColumn.TableArtifactColumn](/api/chartforgex-visualartifacts-tableartifactcolumn/#constructor-ctor-string-string-chartforgex-visualartifacts-tableartifactcolumntype-chartforgex-typography-textalignment-nullable-system-double) parameter `alignment`
- Method [ChartTable.AddColumn](/api/chartforgex-visualblocks-charttable/#method-addcolumn-string-chartforgex-typography-textalignment-nullable-system-double-string) parameter `alignment`
- Extension method [ChartTableCell.Alignment](/api/chartforgex-visualblocks-charttablecell/#extension-alignment-chartforgex-visualblocks-charttablecell-nullable-chartforgex-typography-textalignment) parameter `value`
- Method [ChartTableCellFluent.Alignment](/api/chartforgex-visualblocks-charttablecellfluent/#method-alignment-chartforgex-visualblocks-charttablecell-nullable-chartforgex-typography-textalignment) parameter `value`
- Constructor [ChartTableColumn.ChartTableColumn](/api/chartforgex-visualblocks-charttablecolumn/#constructor-ctor-string-chartforgex-typography-textalignment-nullable-system-double-string) parameter `alignment`

 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 TextAlignment Left` [#](#field-left) 

[TextAlignment.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextAlignment.cs#L8)

Align text with the leading edge of the region.

Value: `0`

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

[TextAlignment.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextAlignment.cs#L11)

Center text inside the region.

Value: `1`

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

[TextAlignment.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextAlignment.cs#L14)

Align text with the trailing edge of the region.

Value: `2`

<!-- PowerForge markdown artifact sha256:1EA6B71C249498A1FDFD54F97E37873D1B660AAEDFD69D79C2409E9E5621BAB9 -->
