共用方式為


ContentPresenter.HorizontalContentAlignment 屬性

定義

取得或設定內容的水平對齊。

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 值。

適用於