Condividi tramite


FlexLayout.SetAlignSelf Method

Definition

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