Język

StaticLayout.Builder.SetIndents(Int32[], Int32[]) Method

Definition

Set indents.

[Android.Runtime.Register("setIndents", "([I[I)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)]
public Android.Text.StaticLayout.Builder SetIndents(int[]? leftIndents, int[]? rightIndents);
[<Android.Runtime.Register("setIndents", "([I[I)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)>]
member this.SetIndents : int[] * int[] -> Android.Text.StaticLayout.Builder

Parameters

leftIndents
Int32[]

array of indent values for left margin, in pixels. This value may be null.

rightIndents
Int32[]

array of indent values for right margin, in pixels. This value may be null.

Returns

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

Attributes

Remarks

Set indents. Arguments are arrays holding an indent amount, one per line, measured in pixels. For lines past the last element in the array, the last element repeats.

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

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