Freigeben über


TextView.LineHeight Property

Definition

Gets the vertical distance between lines of text, in pixels. -or- Sets an explicit line height for this TextView.

public virtual int LineHeight { [Android.Runtime.Register("getLineHeight", "()I", "GetGetLineHeightHandler")] get; [Android.Runtime.Register("setLineHeight", "(I)V", "GetSetLineHeight_IHandler", ApiSince=28)] set; }
[<get: Android.Runtime.Register("getLineHeight", "()I", "GetGetLineHeightHandler")>]
[<set: Android.Runtime.Register("setLineHeight", "(I)V", "GetSetLineHeight_IHandler", ApiSince=28)>]
member this.LineHeight : int with get, set

Property Value

The height of one standard line in pixels.

Attributes

Remarks

Property getter documentation:

Gets the vertical distance between lines of text, in pixels. Note that markup within the text can cause individual lines to be taller or shorter than this height, and the layout may contain additional first-or last-line padding.

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

Property setter documentation:

Sets an explicit line height for this TextView. This is equivalent to the vertical distance between subsequent baselines in the TextView.

Java documentation for android.widget.TextView.setLineHeight(int).

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