PdfStringFormat class Null safety

Represents the text layout information on PDF

//Create a new PDF document.
PdfDocument document = PdfDocument()
  ..pages.add().graphics.drawString(
      'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
      //Create a new PDF string format instance.
      format: PdfStringFormat(
          alignment: PdfTextAlignment.left,
          lineAlignment: PdfVerticalAlignment.top,
          textDirection: PdfTextDirection.leftToRight,
          characterSpacing: 0.5,
          wordSpacing: 0.5,
          lineSpacing: 0.5,
          subSuperscript: PdfSubSuperscript.superscript,
          paragraphIndent: 10,
          measureTrailingSpaces: true,
          wordWrap: PdfWordWrapType.word));
//Save the document.
List<int> bytes = document.save();
//Close the document.
document.dispose();

Constructors

PdfStringFormat({PdfTextAlignment alignment = PdfTextAlignment.left, PdfVerticalAlignment lineAlignment = PdfVerticalAlignment.top, PdfTextDirection textDirection = PdfTextDirection.none, double characterSpacing = 0, double wordSpacing = 0, double lineSpacing = 0, PdfSubSuperscript subSuperscript = PdfSubSuperscript.none, double paragraphIndent = 0, bool measureTrailingSpaces = false, PdfWordWrapType wordWrap = PdfWordWrapType.word})
Initializes a new instance of the PdfStringFormat class with horizontal alignment and vertical alignment of text. [...]

Properties

alignment PdfTextAlignment
Gets and sets Horizontal text alignment. [...]
read / write
characterSpacing double
Gets and sets Character spacing value. [...]
read / write
clipPath bool
Gets and sets if the text should be a part of the current clipping path. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
lineAlignment PdfVerticalAlignment
Gets and sets Vertical text alignment. [...]
read / write
lineLimit bool
Gets and sets whether entire lines are laid out in the formatting rectangle only or not. [...]
read / write
lineSpacing double
Gets and sets Text leading or Line spacing. [...]
read / write
measureTrailingSpaces bool
Gets and sets whether spaces at the end of the line should be left or removed. [...]
read / write
noClip bool
Gets and sets whether the text region should be clipped or not. [...]
read / write
paragraphIndent double
Gets or sets the indent of the first line in the paragraph. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subSuperscript PdfSubSuperscript
Gets and sets whether the text is in subscript or superscript mode. [...]
read / write
textDirection PdfTextDirection
Gets and sets text rendering direction. [...]
read / write
wordSpacing double
Gets and sets Word spacing value. [...]
read / write
wordWrap PdfWordWrapType
Gets and sets text wrapping type. [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited