共用方式為


ListViewItemPresenter.ListViewItemPresenterHorizontalContentAlignment 屬性

定義

注意

ListViewItemPresenterHorizontalContentAlignment 可能會在 Windows 10 之後變更或無法使用版本。 請改用 ContentPresenter.HorizontalContentAlignment

取得或設定所呈現內容的水準對齊方式。

public:
 property HorizontalAlignment ListViewItemPresenterHorizontalContentAlignment { HorizontalAlignment get(); void set(HorizontalAlignment value); };
/// [get: Windows.Foundation.Metadata.Deprecated("Use ContentPresenter.HorizontalContentAlignment instead of ListViewItemPresenterHorizontalContentAlignment. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("Use ContentPresenter.HorizontalContentAlignment instead of ListViewItemPresenterHorizontalContentAlignment. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
HorizontalAlignment ListViewItemPresenterHorizontalContentAlignment();

void ListViewItemPresenterHorizontalContentAlignment(HorizontalAlignment value);
public HorizontalAlignment ListViewItemPresenterHorizontalContentAlignment { [Windows.Foundation.Metadata.Deprecated("Use ContentPresenter.HorizontalContentAlignment instead of ListViewItemPresenterHorizontalContentAlignment. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] get; [Windows.Foundation.Metadata.Deprecated("Use ContentPresenter.HorizontalContentAlignment instead of ListViewItemPresenterHorizontalContentAlignment. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] set; }
var horizontalAlignment = listViewItemPresenter.listViewItemPresenterHorizontalContentAlignment;
listViewItemPresenter.listViewItemPresenterHorizontalContentAlignment = horizontalAlignment;
Public Property ListViewItemPresenterHorizontalContentAlignment As HorizontalAlignment

屬性值

列舉值。

屬性

備註

重要

ListViewItemPresenterHorizontalContentAlignment 可能會在 Windows 10 之後變更或無法使用版本。 請改用 ContentPresenter.HorizontalContentAlignment

適用於