Click or drag to resize
Pdftools logo

TextGenerator Constructor

Create a new text generator for appending text to a text content object.

All parameters that cannot be set in the constructor are set to default values:
  • Rendering: fill text with black paint
  • CharacterSpacing: 0
  • WordSpacing: 0
  • HorizontalScaling: 1
  • Leading: 1.2 times the fontSize (The font's Leading is not used.)
  • Rise: 0
  • Stroke:
  • IntersectClipping:

Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.Content
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntax
C#
public TextGenerator(
	Text text,
	Font font,
	double fontSize,
	Point? location
)

Parameters

text  Text
the text object
font  Font
the initial font
fontSize  Double
the initial font size and leading
location  NullablePoint
the initial position. If position is , the default position [0, 0] is used.
Exceptions
ExceptionCondition
ArgumentExceptionif the document associated with the text object has already been closed
ArgumentExceptionif the text and font objects are associated with different documents
ArgumentExceptionif the document associated with the font object has already been closed
ArgumentExceptionif the font has been obtained from Font
ArgumentNullExceptionif text is .
ArgumentNullExceptionif font is .
See Also