Click or drag to resize

PdfTextWidget Class

Represents the text area with the ability to span several pages.
Inheritance Hierarchy

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public class PdfTextWidget : PdfLayoutWidget

The PdfTextWidget type exposes the following members.

Constructors
Name Description
Public method PdfTextWidget
Initializes a new instance of theclass.
Public method PdfTextWidget(String)
Initializes a new instance of theclass.
Public method PdfTextWidget(String, PdfFontBase)
Initializes a new instance of theclass.
Public method PdfTextWidget(String, PdfFontBase, PdfBrush)
Initializes a new instance of theclass.
Public method PdfTextWidget(String, PdfFontBase, PdfPen)
Initializes a new instance of theclass.
Public method PdfTextWidget(String, PdfFontBase, PdfPen, PdfBrush, PdfStringFormat)
Initializes a new instance of theclass.
Top
Properties
Name Description
Public property Brush
Gets or sets the brush that will be used to draw the text.
Public property Font
Gets or sets a font that will be used to draw the text.
Public property Pen
Gets or sets a pen that will be used to draw the text.
Public property StringFormat
Gets or sets text settings that will be used to draw the text.
Public property Text
Gets or sets a value indicating the text that should be printed.
Top
Methods
Name Description
Public method Draw(PdfCanvas)
Draws an element on the Graphics.
(Inherited from PdfGraphicsWidget .)
Public method Draw(PdfCanvas, PointF)
Draws an element on the Graphics.
(Inherited from PdfGraphicsWidget .)
Public method Draw(PdfPageBase, PointF)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, RectangleF)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfCanvas, Single, Single)
Draws an element on the Graphics.
(Inherited from PdfGraphicsWidget .)
Public method Draw(PdfNewPage, PointF, PdfTextLayout)
Draws the text on the page.
Public method Draw(PdfNewPage, RectangleF, PdfTextLayout)
Draws the text on the page.
Public method Draw(PdfPageBase, PointF, PdfTextLayout)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, RectangleF, PdfTextLayout)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, RectangleF, Boolean)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfPageBase, Single, Single)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Public method Draw(PdfNewPage, PointF, Single, PdfTextLayout)
Draws the text on the page.
Public method Draw(PdfPageBase, Single, Single, PdfTextLayout)
Draws the element on the page.
(Inherited from PdfLayoutWidget .)
Protected method DrawInternal (Overrides PdfGraphicsWidget DrawInternal(PdfCanvas) .)
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 .)
Protected method Layout (Overrides PdfLayoutWidget Layout(PdfLayoutParams) .)
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
Events
Name Description
Public event BeginPageLayout
Event. Raises before the element should be printed on the page.
(Inherited from PdfLayoutWidget .)
Public event EndPageLayout
Event. Raises after the element was printed on the page.
(Inherited from PdfLayoutWidget .)
Top
See Also