Language

AssistStructure.ViewNode.TextStyle Property

Definition

Gets the main text style as a bit mask.

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

A bit mask of AssistTextStyle values for the main text style, or zero if no style flags are set. Style spans can change individual parts of the text.

Attributes

Remarks

The mask can contain Bold, Italic, StrikeThru, and Underline. Style spans can modify the style of individual 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