Język

StaticLayout.Builder.SetLineSpacing(Single, Single) Method

Definition

Set line spacing parameters.

[Android.Runtime.Register("setLineSpacing", "(FF)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)]
public Android.Text.StaticLayout.Builder SetLineSpacing(float spacingAdd, float spacingMult);
[<Android.Runtime.Register("setLineSpacing", "(FF)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)>]
member this.SetLineSpacing : single * single -> Android.Text.StaticLayout.Builder

Parameters

spacingAdd
Single

the amount of line spacing addition

spacingMult
Single

the line spacing multiplier. Value is 0.0f or greater

Returns

this builder, useful for chaining. This value cannot be null.

Attributes

Remarks

Set line spacing parameters. Each line will have its line spacing multiplied by spacingMult and then increased by spacingAdd. The default is 0.0 for spacingAdd and 1.0 for spacingMult.

Android reference for android.text.StaticLayout.Builder.setLineSpacing.

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