次の方法で共有


Path.IsRect(RectF) Method

Definition

Returns true if the path specifies a rectangle.

[Android.Runtime.Register("isRect", "(Landroid/graphics/RectF;)Z", "GetIsRect_Landroid_graphics_RectF_Handler")]
public virtual bool IsRect (Android.Graphics.RectF? rect);
[<Android.Runtime.Register("isRect", "(Landroid/graphics/RectF;)Z", "GetIsRect_Landroid_graphics_RectF_Handler")>]
abstract member IsRect : Android.Graphics.RectF -> bool
override this.IsRect : Android.Graphics.RectF -> bool

Parameters

rect
RectF

If not null, returns the bounds of the path if it specifies a rectangle

Returns

true if the path specifies a rectangle

Attributes

Remarks

Returns true if the path specifies a rectangle. If so, and if rect is not null, set rect to the bounds of the path. If the path does not specify a rectangle, return false and ignore rect.

Java documentation for android.graphics.Path.isRect(android.graphics.RectF).

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