View.FindViewsWithText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FindViewsWithText(IList<View>, ICharSequence, FindViewsWith) |
Finds the Views that contain given text. |
FindViewsWithText(IList<View>, String, FindViewsWith) |
Finds the Views that contain given text. |
FindViewsWithText(IList<View>, ICharSequence, FindViewsWith)
Finds the Views that contain given text.
[Android.Runtime.Register("findViewsWithText", "(Ljava/util/ArrayList;Ljava/lang/CharSequence;I)V", "GetFindViewsWithText_Ljava_util_ArrayList_Ljava_lang_CharSequence_IHandler")]
public virtual void FindViewsWithText (System.Collections.Generic.IList<Android.Views.View>? outViews, Java.Lang.ICharSequence? searched, Android.Views.FindViewsWith flags);
[<Android.Runtime.Register("findViewsWithText", "(Ljava/util/ArrayList;Ljava/lang/CharSequence;I)V", "GetFindViewsWithText_Ljava_util_ArrayList_Ljava_lang_CharSequence_IHandler")>]
abstract member FindViewsWithText : System.Collections.Generic.IList<Android.Views.View> * Java.Lang.ICharSequence * Android.Views.FindViewsWith -> unit
override this.FindViewsWithText : System.Collections.Generic.IList<Android.Views.View> * Java.Lang.ICharSequence * Android.Views.FindViewsWith -> unit
Parameters
- searched
- ICharSequence
The text to match against.
- flags
- FindViewsWith
- Attributes
Remarks
Finds the Views that contain given text. The containment is case insensitive. The search is performed by either the text that the View renders or the content description that describes the view for accessibility purposes and the view does not render or both. Clients can specify how the search is to be performed via passing the #FIND_VIEWS_WITH_TEXT
and #FIND_VIEWS_WITH_CONTENT_DESCRIPTION
flags.
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
FindViewsWithText(IList<View>, String, FindViewsWith)
Finds the Views that contain given text.
public void FindViewsWithText (System.Collections.Generic.IList<Android.Views.View>? outViews, string? searched, Android.Views.FindViewsWith flags);
member this.FindViewsWithText : System.Collections.Generic.IList<Android.Views.View> * string * Android.Views.FindViewsWith -> unit
Parameters
- searched
- String
The text to match against.
- flags
- FindViewsWith
Remarks
Finds the Views that contain given text. The containment is case insensitive. The search is performed by either the text that the View renders or the content description that describes the view for accessibility purposes and the view does not render or both. Clients can specify how the search is to be performed via passing the #FIND_VIEWS_WITH_TEXT
and #FIND_VIEWS_WITH_CONTENT_DESCRIPTION
flags.
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.