FlexLayout.SetAlignSelf(BindableObject, FlexAlignSelf) 方法

定义

设置一个值,该值可选择性地替代该子元素的父元素项目对齐方式。

public static void SetAlignSelf(Xamarin.Forms.BindableObject bindable, Xamarin.Forms.FlexAlignSelf value);
static member SetAlignSelf : Xamarin.Forms.BindableObject * Xamarin.Forms.FlexAlignSelf -> unit

参数

bindable
BindableObject

针对其检索属性值的对象。

value
FlexAlignSelf

新自行对齐值。

注解

下图显示了 对值为 Stretch的布局AlignItems的影响FlexLayout.SetAlignSelf(c, FlexAlignSelf.Start);

适用于