Udostępnij za pośrednictwem


View.ClipBounds Property

Definition

Returns a copy of the current #setClipBounds(Rect) clipBounds. -or- Sets a rectangular area on this view to which the view will be clipped when it is drawn.

public virtual Android.Graphics.Rect? ClipBounds { [Android.Runtime.Register("getClipBounds", "()Landroid/graphics/Rect;", "GetGetClipBoundsHandler")] get; [Android.Runtime.Register("setClipBounds", "(Landroid/graphics/Rect;)V", "GetSetClipBounds_Landroid_graphics_Rect_Handler")] set; }
[<get: Android.Runtime.Register("getClipBounds", "()Landroid/graphics/Rect;", "GetGetClipBoundsHandler")>]
[<set: Android.Runtime.Register("setClipBounds", "(Landroid/graphics/Rect;)V", "GetSetClipBounds_Landroid_graphics_Rect_Handler")>]
member this.ClipBounds : Android.Graphics.Rect with get, set

Property Value

A copy of the current clip bounds if clip bounds are set, otherwise null.

Attributes

Remarks

Property getter documentation:

Returns a copy of the current #setClipBounds(Rect) clipBounds.

Java documentation for android.view.View.getClipBounds().

Property setter documentation:

Sets a rectangular area on this view to which the view will be clipped when it is drawn. Setting the value to null will remove the clip bounds and the view will draw normally, using its full bounds.

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