-
Home
-
API
-
XenoAtom.CommandLine
-
RenderedInvocation
-
Methods
-
TryGetTokenBounds(Int32, out Int32, out Int32)
TryGetTokenBounds(Int32, out Int32, out Int32) Method
Definition
Tries to get the text bounds for a token index.
public bool TryGetTokenBounds(int tokenIndex, scoped out int start, scoped out int length)
Parameters
- tokenIndex
- Int32
The 0-based token index.
- start
- Int32
The 0-based character start in Text.
- length
- Int32
The token length in characters.
Returns
- Boolean
true if bounds are available; otherwise false.