Udostępnij za pośrednictwem


TextView.TextSize Property

Definition

Set the default text size to the given value, interpreted as "scaled pixel" units.

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 size (in pixels) of the default text size in this TextView.

Attributes

Remarks

Property getter documentation:

Java documentation for android.widget.TextView.getTextSize().

Property setter documentation:

Set the default text size to the given value, interpreted as "scaled pixel" units. This size is adjusted based on the current density and user font size preference.

Note: if this TextView has the auto-size feature enabled, then this function is no-op.

Java documentation for android.widget.TextView.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