Udostępnij za pośrednictwem


Block.HorizontalTextAlignment Property

Definition

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

public:
 property TextAlignment HorizontalTextAlignment { TextAlignment get(); void set(TextAlignment value); };
TextAlignment HorizontalTextAlignment();

void HorizontalTextAlignment(TextAlignment value);
public TextAlignment HorizontalTextAlignment { get; set; }
var textAlignment = block.horizontalTextAlignment;
block.horizontalTextAlignment = textAlignment;
Public 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.

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.

Applies to