Share via


AssistStructure.ViewNode.TextStyle Property

Definition

If #getText() is non-null, this is the main text style associated with it, containing a bit mask of #TEXT_STYLE_BOLD, #TEXT_STYLE_BOLD, #TEXT_STYLE_STRIKE_THRU, and/or #TEXT_STYLE_UNDERLINE.

public virtual Android.App.Assist.AssistTextStyle TextStyle { [Android.Runtime.Register("getTextStyle", "()I", "GetGetTextStyleHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getTextStyle", "()I", "GetGetTextStyleHandler", ApiSince=23)>]
member this.TextStyle : Android.App.Assist.AssistTextStyle

Property Value

Attributes

Remarks

If #getText() is non-null, this is the main text style associated with it, containing a bit mask of #TEXT_STYLE_BOLD, #TEXT_STYLE_BOLD, #TEXT_STYLE_STRIKE_THRU, and/or #TEXT_STYLE_UNDERLINE. Note that the text may also contain style spans that modify the style of specific parts of the text.

It's only relevant when the AssistStructure is used for assist purposes, not for autofill purposes.

Java documentation for android.app.assist.AssistStructure.ViewNode.getTextStyle().

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