Share via


FlexLayout.SetShrink 方法

定义

重载

SetShrink(BindableObject, Single)

设置决定此元素将接受的成比例缩小的值,以适应行或列中的布局。

SetShrink(IView, Single)

SetShrink(BindableObject, Single)

设置决定此元素将接受的成比例缩小的值,以适应行或列中的布局。

public:
 static void SetShrink(Microsoft::Maui::Controls::BindableObject ^ bindable, float value);
public static void SetShrink (Microsoft.Maui.Controls.BindableObject bindable, float value);
static member SetShrink : Microsoft.Maui.Controls.BindableObject * single -> unit
Public Shared Sub SetShrink (bindable As BindableObject, value As Single)

参数

bindable
BindableObject

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

value
Single

新弹性收缩值。

适用于

SetShrink(IView, Single)

public:
 void SetShrink(Microsoft::Maui::IView ^ view, float shrink);
public void SetShrink (Microsoft.Maui.IView view, float shrink);
member this.SetShrink : Microsoft.Maui.IView * single -> unit
Public Sub SetShrink (view As IView, shrink As Single)

参数

view
IView
shrink
Single

适用于