Udostępnij za pośrednictwem


RenderNode.SetClipToBounds(Boolean) Method

Definition

Set whether the Render node should clip itself to its bounds.

[Android.Runtime.Register("setClipToBounds", "(Z)Z", "", ApiSince=29)]
public bool SetClipToBounds (bool clipToBounds);
[<Android.Runtime.Register("setClipToBounds", "(Z)Z", "", ApiSince=29)>]
member this.SetClipToBounds : bool -> bool

Parameters

clipToBounds
Boolean

true if the display list should clip to its bounds, false otherwise.

Returns

True if the value changed, false if the new value was the same as the previous value.

Attributes

Remarks

Set whether the Render node should clip itself to its bounds. This defaults to true, and is useful to the renderer in enable quick-rejection of chunks of the tree as well as better partial invalidation support. Clipping can be further restricted or controlled through the combination of this property as well as #setClipRect(Rect), which allows for a different clipping rectangle to be used in addition to or instead of the #setPosition(int, int, int, int) or the RenderNode.

Java documentation for android.graphics.RenderNode.setClipToBounds(boolean).

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