Język

Layout.Builder.SetAlignment(Layout+Alignment) Method

Definition

Set the text alignment.

[Android.Runtime.Register("setAlignment", "(Landroid/text/Layout$Alignment;)Landroid/text/Layout$Builder;", "", ApiSince=35)]
public Android.Text.Layout.Builder SetAlignment(Android.Text.Layout.Alignment alignment);
[<Android.Runtime.Register("setAlignment", "(Landroid/text/Layout$Alignment;)Landroid/text/Layout$Builder;", "", ApiSince=35)>]
member this.SetAlignment : Android.Text.Layout.Alignment -> Android.Text.Layout.Builder

Parameters

alignment
Layout.Alignment

an alignment. This value cannot be null.

Returns

this builder instance. This value cannot be null.

Attributes

Remarks

Set the text alignment. The default value is Layout.Alignment.ALIGN_NORMAL.

Android reference for android.text.Layout.Builder.setAlignment.

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