GridViewItemPresenter.GridViewItemPresenterVerticalContentAlignment 属性

定义

注意

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

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

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

void GridViewItemPresenterVerticalContentAlignment(VerticalAlignment value);
public VerticalAlignment GridViewItemPresenterVerticalContentAlignment { [Windows.Foundation.Metadata.Deprecated("Use ContentPresenter.VerticalContentAlignment instead of GridViewItemPresenterVerticalContentAlignment. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] get; [Windows.Foundation.Metadata.Deprecated("Use ContentPresenter.VerticalContentAlignment instead of GridViewItemPresenterVerticalContentAlignment. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] set; }
var verticalAlignment = gridViewItemPresenter.gridViewItemPresenterVerticalContentAlignment;
gridViewItemPresenter.gridViewItemPresenterVerticalContentAlignment = verticalAlignment;
Public Property GridViewItemPresenterVerticalContentAlignment As VerticalAlignment

属性值

枚举的一个值。

属性

注解

重要

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

适用于