InputConnectionWrapper.InterfaceConsts.GetTextWithStyles 字段

定义

注意

This constant will be removed in the future version. Use Android.Views.InputMethods.GetTextFlags enum directly instead of this field.

标志,与#getTextAfterCursor#getTextBeforeCursor#getSurroundingText文本一起返回样式信息。

[Android.Runtime.Register("GET_TEXT_WITH_STYLES")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputMethods.GetTextFlags enum directly instead of this field.", true)]
public const Android.Views.InputMethods.GetTextFlags GetTextWithStyles = 1;
[<Android.Runtime.Register("GET_TEXT_WITH_STYLES")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputMethods.GetTextFlags enum directly instead of this field.", true)>]
val mutable GetTextWithStyles : Android.Views.InputMethods.GetTextFlags

字段值

Value = 1
属性

注解

标志,与#getTextAfterCursor#getTextBeforeCursor#getSurroundingText文本一起返回样式信息。 如果未设置, #getTextAfterCursor 则仅发送原始文本,而不发送样式或其他范围。 如果设置,它可能会返回文本和样式跨度的复杂 CharSequence。 <强>编辑器作者</强>:如果可能,应努力发送带有样式的文本,但这不是必需的。

适用于 . 的 android.view.inputmethod.InputConnection.GET_TEXT_WITH_STYLESJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于