Sprache

StaticLayout.Builder.SetTextDirection(ITextDirectionHeuristic) Method

Definition

Set the text direction heuristic.

[Android.Runtime.Register("setTextDirection", "(Landroid/text/TextDirectionHeuristic;)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)]
public Android.Text.StaticLayout.Builder SetTextDirection(Android.Text.ITextDirectionHeuristic textDir);
[<Android.Runtime.Register("setTextDirection", "(Landroid/text/TextDirectionHeuristic;)Landroid/text/StaticLayout$Builder;", "", ApiSince=23)>]
member this.SetTextDirection : Android.Text.ITextDirectionHeuristic -> Android.Text.StaticLayout.Builder

Parameters

textDir
ITextDirectionHeuristic

text direction heuristic for resolving bidi behavior. This value cannot be null.

Returns

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

Attributes

Remarks

Set the text direction heuristic. The text direction heuristic is used to resolve text direction per-paragraph based on the input text. The default is TextDirectionHeuristics.FIRSTSTRONG_LTR.

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

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