Język

LineBreakConfig.Builder.SetHyphenation(Int32) Method

Definition

Sets the hyphenation preference Note: Even if the LineBreakConfig.HYPHENATION_ENABLED is specified, the hyphenation will not be performed if the TextView or underlying StaticLayout, LineBreaker are configured with LineBreaker.HYPHENATION_FREQUENCY_NONE.

[Android.Runtime.Register("setHyphenation", "(I)Landroid/graphics/text/LineBreakConfig$Builder;", "", ApiSince=35)]
public Android.Graphics.Text.LineBreakConfig.Builder SetHyphenation(int hyphenation);
[<Android.Runtime.Register("setHyphenation", "(I)Landroid/graphics/text/LineBreakConfig$Builder;", "", ApiSince=35)>]
member this.SetHyphenation : int -> Android.Graphics.Text.LineBreakConfig.Builder

Parameters

hyphenation
Int32

The hyphenation preference. Value is one of the following: LineBreakConfig.HYPHENATION_UNSPECIFIED; LineBreakConfig.HYPHENATION_ENABLED; LineBreakConfig.HYPHENATION_DISABLED

Returns

This Builder. This value cannot be null.

Attributes

Remarks

Sets the hyphenation preference Note: Even if the LineBreakConfig.HYPHENATION_ENABLED is specified, the hyphenation will not be performed if the TextView or underlying StaticLayout, LineBreaker are configured with LineBreaker.HYPHENATION_FREQUENCY_NONE. Note: Even if the hyphenation is enabled with a line break strategy LineBreaker.BREAK_STRATEGY_SIMPLE, the hyphenation will not be performed unless a single word cannot meet width constraints.

Android reference for android.graphics.text.LineBreakConfig.Builder.setHyphenation.

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