Back to Devexpress

ShapeTextParagraphFormat.Alignment Property

officefileapi-devexpress-dot-spreadsheet-dot-shapetextparagraphformat.md

latest2.3 KB
Original Source

ShapeTextParagraphFormat.Alignment Property

Gets or sets the alignment of a shape text paragraph.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
ShapeTextParagraphAlignment Alignment { get; set; }
vb
Property Alignment As ShapeTextParagraphAlignment

Property Value

TypeDescription
ShapeTextParagraphAlignment

One of the ShapeTextParagraphAlignment enumeration values indicating the paragraph alignment.

|

Available values:

NameDescription
Left

Specifies a left-aligned paragraph.

| | Center |

Specifies a center-aligned paragraph.

| | Right |

Specifies a right-aligned paragraph.

| | Justified |

Specifies a fully justified paragraph.

| | JustifiedLow |

Specifies that a paragraph uses the small length kashida for Arabic text. For other languages, paragraph text is justified with a low character compression ratio.

| | Distributed |

Specifies that paragraph characters are distributed to fill the entire paragraph width.

| | ThaiDistributed |

Specifies that paragraph text is justified using Thai distributed justification for the Thai language.

|

Remarks

The Alignment property specifies the alignment for a current shape text range only. Use the ShapeText.VerticalAnchor and ShapeText.HorizontalAnchor properties to define the alignment of a whole shape text.

See Also

ShapeTextParagraphFormat Interface

ShapeTextParagraphFormat Members

DevExpress.Spreadsheet Namespace