Version

TokenFromOffset Method

Returns the corresponding Infragistics.Documents.Parsing.Token from a zero-based offset value.
Syntax
'Declaration
 
Public Function TokenFromOffset( _
   ByVal offset As Integer, _
   Optional ByVal splitMultilineTokensByLine As Boolean _
) As Token
public Token TokenFromOffset( 
   int offset,
   bool splitMultilineTokensByLine
)

Parameters

offset
The zero-based offset relative to the beginning of the document for this token.
splitMultilineTokensByLine
Indicates whether multiline tokens should be split so the token returned only consist of the portion on the line at the specified index.

Return Value

Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionIf offset is less than zero or greater than the document's overall length.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also