Share via


Paint.TextSize Property

Definition

Return the paint's text size. -or- Set the paint's text size.

public virtual float TextSize { [Android.Runtime.Register("getTextSize", "()F", "GetGetTextSizeHandler")] get; [Android.Runtime.Register("setTextSize", "(F)V", "GetSetTextSize_FHandler")] set; }
[<get: Android.Runtime.Register("getTextSize", "()F", "GetGetTextSizeHandler")>]
[<set: Android.Runtime.Register("setTextSize", "(F)V", "GetSetTextSize_FHandler")>]
member this.TextSize : single with get, set

Property Value

the paint's text size in pixel units.

Attributes

Remarks

Property getter documentation:

Return the paint's text size.

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

Property setter documentation:

Set the paint's text size. This value must be > 0

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