Layout.LayoutChildIntoBoundingRegion(VisualElement, Rect) 方法

定义

注意

Use the Arrange method on child instead.

将子元素定位到边界区域,同时遵循子元素 HorizontalOptionsVerticalOptions

public:
 static void LayoutChildIntoBoundingRegion(Microsoft::Maui::Controls::VisualElement ^ child, Microsoft::Maui::Graphics::Rect region);
public static void LayoutChildIntoBoundingRegion (Microsoft.Maui.Controls.VisualElement child, Microsoft.Maui.Graphics.Rect region);
[System.Obsolete("Use the Arrange method on child instead.")]
public static void LayoutChildIntoBoundingRegion (Microsoft.Maui.Controls.VisualElement child, Microsoft.Maui.Graphics.Rect region);
static member LayoutChildIntoBoundingRegion : Microsoft.Maui.Controls.VisualElement * Microsoft.Maui.Graphics.Rect -> unit
[<System.Obsolete("Use the Arrange method on child instead.")>]
static member LayoutChildIntoBoundingRegion : Microsoft.Maui.Controls.VisualElement * Microsoft.Maui.Graphics.Rect -> unit
Public Shared Sub LayoutChildIntoBoundingRegion (child As VisualElement, region As Rect)

参数

child
VisualElement

要定位的子元素。

region
Rect

应在其中定位子级的边界区域。

属性

注解

计算每个子项的常规区域后,在布局周期中调用此方法。 如果给定的边界区域大于子元素所需的大小,则此方法将处理相对于给定边界区域的定位。

适用于