Share via


FlexLayout.GetShrink 方法

定义

重载

GetShrink(BindableObject)

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

GetShrink(IView)

GetShrink(BindableObject)

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

public:
 static float GetShrink(Microsoft::Maui::Controls::BindableObject ^ bindable);
public static float GetShrink (Microsoft.Maui.Controls.BindableObject bindable);
static member GetShrink : Microsoft.Maui.Controls.BindableObject -> single
Public Shared Function GetShrink (bindable As BindableObject) As Single

参数

bindable
BindableObject

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

返回

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

适用于

GetShrink(IView)

public:
 virtual float GetShrink(Microsoft::Maui::IView ^ view);
public float GetShrink (Microsoft.Maui.IView view);
abstract member GetShrink : Microsoft.Maui.IView -> single
override this.GetShrink : Microsoft.Maui.IView -> single
Public Function GetShrink (view As IView) As Single

参数

view
IView

返回

实现

适用于