次の方法で共有


ViewGroup.GetChildVisibleRect(View, Rect, Point) Method

Definition

Compute the visible part of a rectangular region defined in terms of a child view's coordinates.

[Android.Runtime.Register("getChildVisibleRect", "(Landroid/view/View;Landroid/graphics/Rect;Landroid/graphics/Point;)Z", "GetGetChildVisibleRect_Landroid_view_View_Landroid_graphics_Rect_Landroid_graphics_Point_Handler")]
public virtual bool GetChildVisibleRect (Android.Views.View? child, Android.Graphics.Rect? r, Android.Graphics.Point? offset);
[<Android.Runtime.Register("getChildVisibleRect", "(Landroid/view/View;Landroid/graphics/Rect;Landroid/graphics/Point;)Z", "GetGetChildVisibleRect_Landroid_view_View_Landroid_graphics_Rect_Landroid_graphics_Point_Handler")>]
abstract member GetChildVisibleRect : Android.Views.View * Android.Graphics.Rect * Android.Graphics.Point -> bool
override this.GetChildVisibleRect : Android.Views.View * Android.Graphics.Rect * Android.Graphics.Point -> bool

Parameters

child
View

A child View, whose rectangular visible region we want to compute

r
Rect

The input rectangle, defined in the child coordinate system. Will be overwritten to contain the resulting visible rectangle, expressed in global (root) coordinates

offset
Point

The input coordinates of a point, defined in the child coordinate system. As with the r parameter, this will be overwritten to contain the global (root) coordinates of that point. A null value is valid (in case you are not interested in this result)

Returns

Implements

Attributes

Remarks

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