Skip to main content
Row

ShapeTextParagraphFormat.Alignment Property

Gets or sets the alignment of a shape text paragraph.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

ShapeTextParagraphAlignment Alignment { get; set; }

Property Value

Type Description
ShapeTextParagraphAlignment

One of the ShapeTextParagraphAlignment enumeration values indicating the paragraph alignment.

Available values:

Name Description
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