PdfTextWidget Constructor (String, PdfFontBase, PdfPen, PdfBrush, PdfStringFormat)
|
Initializes a new instance of theclass.
Namespace:
Spire.Pdf.Graphics
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public PdfTextWidget(
string text,
PdfFontBase font,
PdfPen pen,
PdfBrush brush,
PdfStringFormat format
)
Public Sub New (
text As String,
font As PdfFontBase,
pen As PdfPen,
brush As PdfBrush,
format As PdfStringFormat
)
public:
PdfTextWidget(
String^ text,
PdfFontBase^ font,
PdfPen^ pen,
PdfBrush^ brush,
PdfStringFormat^ format
)
new :
text : string *
font : PdfFontBase *
pen : PdfPen *
brush : PdfBrush *
format : PdfStringFormat -> PdfTextWidget
Parameters
-
text
-
Type:
System
String
The text.
-
font
-
Type:
Spire.Pdf.Graphics
PdfFontBase
The font.
-
pen
-
Type:
Spire.Pdf.Graphics
PdfPen
The pen.
-
brush
-
Type:
Spire.Pdf.Graphics
PdfBrush
The brush.
-
format
-
Type:
Spire.Pdf.Graphics
PdfStringFormat
The format.
See Also