Apache Lucene.Net 2.4.0 Class Library API

Token.EndOffset Method 

Returns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text. The length of the token in the source text is (endOffset - startOffset).

public int EndOffset();

See Also

Token Class | Lucene.Net.Analysis Namespace