共用方式為


RectF.OffsetTo(Single, Single) Method

Definition

Offset the rectangle to a specific (left, top) position, keeping its width and height the same.

[Android.Runtime.Register("offsetTo", "(FF)V", "GetOffsetTo_FFHandler")]
public virtual void OffsetTo (float newLeft, float newTop);
[<Android.Runtime.Register("offsetTo", "(FF)V", "GetOffsetTo_FFHandler")>]
abstract member OffsetTo : single * single -> unit
override this.OffsetTo : single * single -> unit

Parameters

newLeft
Single

The new "left" coordinate for the rectangle

newTop
Single

The new "top" coordinate for the rectangle

Attributes

Remarks

Offset the rectangle to a specific (left, top) position, keeping its width and height the same.

Java documentation for android.graphics.RectF.offsetTo(float, float).

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