Udostępnij za pośrednictwem


View.GetDrawingRect(Rect) Method

Definition

Return the visible drawing bounds of your view.

[Android.Runtime.Register("getDrawingRect", "(Landroid/graphics/Rect;)V", "GetGetDrawingRect_Landroid_graphics_Rect_Handler")]
public virtual void GetDrawingRect (Android.Graphics.Rect? outRect);
[<Android.Runtime.Register("getDrawingRect", "(Landroid/graphics/Rect;)V", "GetGetDrawingRect_Landroid_graphics_Rect_Handler")>]
abstract member GetDrawingRect : Android.Graphics.Rect -> unit
override this.GetDrawingRect : Android.Graphics.Rect -> unit

Parameters

outRect
Rect

The (scrolled) drawing bounds of the view.

Attributes

Remarks

Return the visible drawing bounds of your view. Fills in the output rectangle with the values from getScrollX(), getScrollY(), getWidth(), and getHeight(). These bounds do not account for any transformation properties currently set on the view, such as #setScaleX(float) or #setRotation(float).

Java documentation for android.view.View.getDrawingRect(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