Поделиться через


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.

Применяется к