Block.HorizontalTextAlignment プロパティ

定義

ブロック内のテキストの配置方法を示す値を取得または設定します。

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"/>

プロパティ値

テキストの配置方法を指定する TextAlignment 列挙値の 1 つ。 既定値は Left です

Windows の要件

デバイス ファミリ
Windows 10 Fall Creators Update (10.0.16299.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v5.0 で導入)

注釈

このプロパティは XAML Standard をサポートしています。 TextAlignement プロパティと同じ機能が提供されます。 両方のプロパティが競合する値に設定されている場合は、最後の 1 つのセットが使用されます。

適用対象