Click or drag to resize

TextRange Class

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
SystemObject
  pdftron.PDFTextRange

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class TextRange : IClosable

The TextRange type exposes the following members.

Constructors
  NameDescription
Public methodTextRange
Creates a TextRange from a given object
Top
Methods
  NameDescription
Public methodClose
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPageNumber
Get the page number of the text range.
Public methodGetQuads
Get the corresponding quadrangles of the text range.
Public methodGetText
Get the Unicode string content of the text range.
Public methodGetTextAfter
Get the Unicode string content immediately after the text range.
Public methodGetTextBefore
Get the Unicode string content immediately before the text range.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also