Edit

Share via


RichSuggestBox.TryGetTokenFromRange(ITextRange, RichSuggestToken) Method

Definition

Try getting the token associated with a text range.

public bool TryGetTokenFromRange (Windows.UI.Text.ITextRange range, out Microsoft.Toolkit.Uwp.UI.Controls.RichSuggestToken token);
member this.TryGetTokenFromRange : Windows.UI.Text.ITextRange * RichSuggestToken -> bool
Public Function TryGetTokenFromRange (range As ITextRange, ByRef token As RichSuggestToken) As Boolean

Parameters

range
Windows.UI.Text.ITextRange

The range of the token to get.

token
RichSuggestToken

When this method returns, contains the token associated with the specified range; otherwise, it is null.

Returns

true if there is a token associated with the text range; otherwise false.

Applies to