Block.HorizontalTextAlignment Block.HorizontalTextAlignment Block.HorizontalTextAlignment Block.HorizontalTextAlignment Property

Definition

Gets or sets a value that indicates how text is aligned in the Block.

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

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

Property Value

One of the TextAlignment enumeration values that specifies how text is aligned. The default is Left.

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

This property supports XAML Standard. It provides the same functionality as the TextAlignement property. If both properties are set to conflicting values, the last one set is used.