Block.TextAlignment Block.TextAlignment Block.TextAlignment Block.TextAlignment Property

Definition

Gets or sets the horizontal alignment of the text content.

public : TextAlignment TextAlignment { get; set; }
TextAlignment TextAlignment();

void TextAlignment(TextAlignment textalignment);
public TextAlignment TextAlignment { get; set; }
Public ReadWrite Property TextAlignment As TextAlignment
<Paragraph TextAlignment="textAlignmentMemberName"/>

Property Value

The horizontal alignment of the text content. The default is Left.

Remarks

Block is a base class for Paragraph. Paragraph is the only element that you can set a TextAlignment value on in Windows Runtime XAML, unless you create a custom class based on Block.

See also