다음을 통해 공유


View.ScaleX Property

Definition

The amount that the view is scaled in x around the pivot point, as a proportion of the view's unscaled width. -or- Sets the amount that the view is scaled in x around the pivot point, as a proportion of the view's unscaled width.

public virtual float ScaleX { [Android.Runtime.Register("getScaleX", "()F", "GetGetScaleXHandler")] get; [Android.Runtime.Register("setScaleX", "(F)V", "GetSetScaleX_FHandler")] set; }
[<get: Android.Runtime.Register("getScaleX", "()F", "GetGetScaleXHandler")>]
[<set: Android.Runtime.Register("setScaleX", "(F)V", "GetSetScaleX_FHandler")>]
member this.ScaleX : single with get, set

Property Value

The scaling factor.

Attributes

Remarks

Property getter documentation:

The amount that the view is scaled in x around the pivot point, as a proportion of the view's unscaled width. A value of 1, the default, means that no scaling is applied.

By default, this is 1.0f.

Java documentation for android.view.View.getScaleX().

Property setter documentation:

Sets the amount that the view is scaled in x around the pivot point, as a proportion of the view's unscaled width. A value of 1 means that no scaling is applied.

Java documentation for android.view.View.setScaleX(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

See also