Sdílet prostřednictvím


RenderNode.SetPosition Method

Definition

Overloads

SetPosition(Rect)

Sets the position of the RenderNode.

SetPosition(Int32, Int32, Int32, Int32)

Sets the position of the RenderNode.

SetPosition(Rect)

Sets the position of the RenderNode.

[Android.Runtime.Register("setPosition", "(Landroid/graphics/Rect;)Z", "", ApiSince=29)]
public bool SetPosition (Android.Graphics.Rect position);
[<Android.Runtime.Register("setPosition", "(Landroid/graphics/Rect;)Z", "", ApiSince=29)>]
member this.SetPosition : Android.Graphics.Rect -> bool

Parameters

position
Rect

The position rectangle in pixels

Returns

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

Attributes

Remarks

Sets the position of the RenderNode.

Java documentation for android.graphics.RenderNode.setPosition(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

SetPosition(Int32, Int32, Int32, Int32)

Sets the position of the RenderNode.

[Android.Runtime.Register("setPosition", "(IIII)Z", "", ApiSince=29)]
public bool SetPosition (int left, int top, int right, int bottom);
[<Android.Runtime.Register("setPosition", "(IIII)Z", "", ApiSince=29)>]
member this.SetPosition : int * int * int * int -> bool

Parameters

left
Int32

The left position of the RenderNode, in pixels

top
Int32

The top position of the RenderNode, in pixels

right
Int32

The right position of the RenderNode, in pixels

bottom
Int32

The bottom position of the RenderNode, in pixels

Returns

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

Attributes

Remarks

Sets the position of the RenderNode.

Java documentation for android.graphics.RenderNode.setPosition(int, int, int, int).

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