Share via


GridViewItemPresenter.GridViewItemPresenterHorizontalContentAlignment Property

Definition

Note

GridViewItemPresenterHorizontalContentAlignment may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.HorizontalContentAlignment.

Gets or sets the horizontal alignment of the content being presented.

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

Property Value

A value of the enumeration.

Attributes

Remarks

Important

GridViewItemPresenterHorizontalContentAlignment may be altered or unavailable for releases after Windows 10. Instead, use ContentPresenter.HorizontalContentAlignment.

Applies to