RichSuggestBox.TryGetTokenFromRange(ITextRange, RichSuggestToken) 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.
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.