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

适用于