Paint.TextScaleX Property

Definition

Return the paint's horizontal scale factor for text. -or- Set the paint's horizontal scale factor for text.

public virtual float TextScaleX { [Android.Runtime.Register("getTextScaleX", "()F", "GetGetTextScaleXHandler")] get; [Android.Runtime.Register("setTextScaleX", "(F)V", "GetSetTextScaleX_FHandler")] set; }
[<get: Android.Runtime.Register("getTextScaleX", "()F", "GetGetTextScaleXHandler")>]
[<set: Android.Runtime.Register("setTextScaleX", "(F)V", "GetSetTextScaleX_FHandler")>]
member this.TextScaleX : single with get, set

Property Value

the paint's scale factor in X for drawing/measuring text

Attributes

Remarks

Property getter documentation:

Return the paint's horizontal scale factor for text. The default value is 1.0.

Java documentation for android.graphics.Paint.getTextScaleX().

Property setter documentation:

Set the paint's horizontal scale factor for text. The default value is 1.0. Values > 1.0 will stretch the text wider. Values < 1.0 will stretch the text narrower.

Java documentation for android.graphics.Paint.setTextScaleX(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