Udostępnij za pośrednictwem


RenderNode.SetOutline(Outline) Method

Definition

Sets the outline, defining the shape that casts a shadow, and the path to be clipped if setClipToOutline is set.

[Android.Runtime.Register("setOutline", "(Landroid/graphics/Outline;)Z", "", ApiSince=29)]
public bool SetOutline (Android.Graphics.Outline? outline);
[<Android.Runtime.Register("setOutline", "(Landroid/graphics/Outline;)Z", "", ApiSince=29)>]
member this.SetOutline : Android.Graphics.Outline -> bool

Parameters

outline
Outline

The outline to use for this RenderNode.

Returns

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

Attributes

Remarks

Sets the outline, defining the shape that casts a shadow, and the path to be clipped if setClipToOutline is set.

This will make a copy of the provided Outline, so any future modifications to the outline will need to call #setOutline(Outline) with the modified outline for those changes to be applied.

Java documentation for android.graphics.RenderNode.setOutline(android.graphics.Outline).

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