Läs på engelska

Dela via


RectF.Inset(Single, Single) Method

Definition

Inset the rectangle by (dx,dy).

C#
[Android.Runtime.Register("inset", "(FF)V", "GetInset_FFHandler")]
public virtual void Inset(float dx, float dy);

Parameters

dx
Single

The amount to add(subtract) from the rectangle's left(right)

dy
Single

The amount to add(subtract) from the rectangle's top(bottom)

Attributes

Remarks

Inset the rectangle by (dx,dy). If dx is positive, then the sides are moved inwards, making the rectangle narrower. If dx is negative, then the sides are moved outwards, making the rectangle wider. The same holds true for dy and the top and bottom.

Java documentation for android.graphics.RectF.inset(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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35