Sdílet prostřednictvím


Outline.GetRect(Rect) Method

Definition

Populates outBounds with the outline bounds, if set, and returns true.

[Android.Runtime.Register("getRect", "(Landroid/graphics/Rect;)Z", "", ApiSince=24)]
public bool GetRect (Android.Graphics.Rect outRect);
[<Android.Runtime.Register("getRect", "(Landroid/graphics/Rect;)Z", "", ApiSince=24)>]
member this.GetRect : Android.Graphics.Rect -> bool

Parameters

outRect
Rect

the rect to populate with the outline bounds, if set

Returns

true if outBounds was populated with outline bounds, or false if no outline bounds are set

Attributes

Remarks

Populates outBounds with the outline bounds, if set, and returns true. If no outline bounds are set, or if a path has been set via #setPath(Path), returns false.

Java documentation for android.graphics.Outline.getRect(android.graphics.Rect).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to