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
| Name | Description |
|---|---|
| SetAlignSelf(IView, FlexAlignSelf) | |
| SetAlignSelf(BindableObject, FlexAlignSelf) |
Sets the self-alignment override for the element within the flex layout. |
SetAlignSelf(IView, FlexAlignSelf)
- Source:
- FlexLayout.cs
- 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
- Source:
- FlexLayout.cs
Sets the self-alignment override for the element within the flex layout.
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 element to set the alignment for.
- value
- FlexAlignSelf
The self-alignment value to set.
Remarks
The following image shows the effect of FlexLayout.SetAlignSelf(c, FlexAlignSelf.Start); on a layout withAlignItems value of Stretch:
