Udostępnij za pośrednictwem


TextAttribute.InputMethodUnderline Property

Definition

Attribute key for input method underlines.

[Android.Runtime.Register("INPUT_METHOD_UNDERLINE")]
public static Java.Awt.Font.TextAttribute? InputMethodUnderline { get; }
[<Android.Runtime.Register("INPUT_METHOD_UNDERLINE")>]
static member InputMethodUnderline : Java.Awt.Font.TextAttribute

Property Value

Attributes

Remarks

Attribute key for input method underlines. Values are instances of <b>Integer</b>. The default value is -1, which means no underline.

Several constant values are provided, see #UNDERLINE_LOW_ONE_PIXEL, #UNDERLINE_LOW_TWO_PIXEL, #UNDERLINE_LOW_DOTTED, #UNDERLINE_LOW_GRAY, and #UNDERLINE_LOW_DASHED.

This may be used in conjunction with #UNDERLINE if desired. The primary purpose is for use by input methods. Other use of these underlines for simple ornamentation might confuse users.

The input method underline affects both the visual bounds and the outline of the text.

Added in 1.3.

Java documentation for java.awt.font.TextAttribute.INPUT_METHOD_UNDERLINE.

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