Click or drag to resize

PdfTextFragment Class

The class representing a result of searching designated text from PDF page.
Inheritance Hierarchy
System Object
Spire.Pdf.Texts PdfTextFragment

Namespace: Spire.Pdf.Texts
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public class PdfTextFragment

The PdfTextFragment type exposes the following members.

Properties
Name Description
Public property Bounds
if the MatchText in more lines( >=2 ),the results can not contain by one Rectangle. So we need an array to save data. Gets the bounds of the searched text of this System.Drawing RectangleF structure.
Public property LineText
Gets all text of the line which covers the target text.
Public property Page
Gets the page where the text is located.
Public property Positions
Used by find text cross line if the MatchText in more lines( >=2 ),the results can not contain by one Rectangle. So we need an array to save data. Gets the positions of the searched text of this System.Drawing.PointF structure.
Public property Sizes
Used by find text cross line if the MatchText in more lines( >=2 ),the results can not contain by one Rectangle. So we need an array to save data. Gets the sizes of the searched text of this System.Drawing SizeF structure.
Public property Text
Gets the text.
Public property TextStates
Gets the text state.
Top
Methods
Name Description
Public method ApplyRecoverString
Overlays the old text with the sppecified color and draws the new text.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method HighLight
Highlight the target text.
Public method HighLight(Color)
Highlight the target text.
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also