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, Windows.Foundation.UniversalApiContract)]
/// [set: Windows.Foundation.Metadata.Deprecated("Use ContentPresenter.HorizontalContentAlignment instead of GridViewItemPresenterHorizontalContentAlignment. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
HorizontalAlignment GridViewItemPresenterHorizontalContentAlignment();

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

属性值

枚举的一个值。

属性

注解

重要

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

适用于