ContentPresenter.HorizontalContentAlignment 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定內容的水平對齊。
public:
property HorizontalAlignment HorizontalContentAlignment { HorizontalAlignment get(); void set(HorizontalAlignment value); };
HorizontalAlignment HorizontalContentAlignment();
void HorizontalContentAlignment(HorizontalAlignment value);
public HorizontalAlignment HorizontalContentAlignment { get; set; }
var horizontalAlignment = contentPresenter.horizontalContentAlignment;
contentPresenter.horizontalContentAlignment = horizontalAlignment;
Public Property HorizontalContentAlignment As HorizontalAlignment
<ContentPresenter HorizontalContentAlignment="horizontalAlignmentMemberName"/>
屬性值
其中一個 HorizontalAlignment 值。