GridViewItemPresenter.GridViewItemPresenterHorizontalContentAlignment 属性

定义

注意

GridViewItemPresenterHorizontalContentAlignment 可能会在Windows 10后更改或不可用于发布。 请改用 ContentPresenter.HorizontalContentAlignment

获取或设置所呈现内容的水平对齐方式。

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

void GridViewItemPresenterHorizontalContentAlignment(HorizontalAlignment value);
public HorizontalAlignment GridViewItemPresenterHorizontalContentAlignment { [Windows.Foundation.Metadata.Deprecated("Use ContentPresenter.HorizontalContentAlignment instead of GridViewItemPresenterHorizontalContentAlignment. 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 GridViewItemPresenterHorizontalContentAlignment. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] set; }
var horizontalAlignment = gridViewItemPresenter.gridViewItemPresenterHorizontalContentAlignment;
gridViewItemPresenter.gridViewItemPresenterHorizontalContentAlignment = horizontalAlignment;
Public Property GridViewItemPresenterHorizontalContentAlignment As HorizontalAlignment

属性值

枚举的一个值。

属性

注解

重要

GridViewItemPresenterHorizontalContentAlignment 可能会在Windows 10后更改或不可用于发布。 请改用 ContentPresenter.HorizontalContentAlignment

适用于