FlexLayout.SetAlignSelf Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetAlignSelf(IView, FlexAlignSelf) | |
SetAlignSelf(BindableObject, FlexAlignSelf) |
Sets a value that optionally overrides the parent element's item aliginment for this child element. |
SetAlignSelf(IView, FlexAlignSelf)
- Source:
- FlexLayout.cs
- Source:
- FlexLayout.cs
public:
void SetAlignSelf(Microsoft::Maui::IView ^ view, Microsoft::Maui::Layouts::FlexAlignSelf alignSelf);
public void SetAlignSelf (Microsoft.Maui.IView view, Microsoft.Maui.Layouts.FlexAlignSelf alignSelf);
member this.SetAlignSelf : Microsoft.Maui.IView * Microsoft.Maui.Layouts.FlexAlignSelf -> unit
Public Sub SetAlignSelf (view As IView, alignSelf As FlexAlignSelf)
Parameters
- view
- IView
- alignSelf
- FlexAlignSelf
Applies to
SetAlignSelf(BindableObject, FlexAlignSelf)
- Source:
- FlexLayout.cs
- Source:
- FlexLayout.cs
Sets a value that optionally overrides the parent element's item aliginment for this child element.
public:
static void SetAlignSelf(Microsoft::Maui::Controls::BindableObject ^ bindable, Microsoft::Maui::Layouts::FlexAlignSelf value);
public static void SetAlignSelf (Microsoft.Maui.Controls.BindableObject bindable, Microsoft.Maui.Layouts.FlexAlignSelf value);
static member SetAlignSelf : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Layouts.FlexAlignSelf -> unit
Public Shared Sub SetAlignSelf (bindable As BindableObject, value As FlexAlignSelf)
Parameters
- bindable
- BindableObject
The object for which to retrieve the property value.
- value
- FlexAlignSelf
The new self-alignment value.
Remarks
The following image shows the effect of FlexLayout.SetAlignSelf(c, FlexAlignSelf.Start);
on a layout withAlignItems value of Stretch:
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET MAUI