View.GetDrawingRect(Rect) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.