The TextRange class represents a contiguous range of text on a PDF page.
It may be the result of a text search, or simply a couple of highlighted or
underlined words.
Each text range contains a few pieces of information:
page: the number of the page this piece of text is on;
position: the start position (text offset);
length: the length.
You are able to retrieve further information about the text range, such as its
coordinates, the text itself, as well as characters before and after.
Inheritance Hierarchy
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntaxpublic sealed class TextRange : IClosable
Public NotInheritable Class TextRange
Implements IClosable
public ref class TextRange sealed : IClosable
pdftron.PDF.TextRange = function();
Type.createClass(
'pdftron.PDF.TextRange',
null,
Windows.Foundation.IClosable);
The TextRange type exposes the following members.
Constructors
| Name | Description |
---|
 | TextRange | Creates a TextRange from a given object |
Top
Methods
| Name | Description |
---|
 | Close | |
 | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
 | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
 | GetPageNumber | Get the page number of the text range. |
 | GetQuads | Get the corresponding quadrangles of the text range. |
 | GetText | Get the Unicode string content of the text range. |
 | GetTextAfter | Get the Unicode string content immediately after the text range. |
 | GetTextBefore | Get the Unicode string content immediately before the text range. |
 | GetType | Gets the Type of the current instance. (Inherited from Object.) |
 | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
See Also