.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfStringFormat Members

Contains settings to format strings in a document.

Constructors

Name Description
PdfStringFormat() Initializes a new instance of the PdfStringFormat class with the default settings.
PdfStringFormat(PdfStringFormat) Initializes a new instance of the PdfStringFormat class with the specified string format.
PdfStringFormat(PdfStringFormatFlags) Initializes a new instance of the PdfStringFormat class with the specified string format flags.

Properties

Name Description
Alignment Gets or sets the horizontal alignment of the string.
FormatFlags Gets or sets a PdfStringFormatFlags enumeration that contains format information.
GenericDefault static Gets a generic default PdfStringFormat object.
GenericTypographic static Gets a generic typographic PdfStringFormat object.
HotkeyPrefix Gets or sets the PdfHotkeyPrefix object for this PdfStringFormat object.
LeadingMarginFactor Gets or sets a value that is the fraction of the font em-size used as both horizontal and vertical leading string margins.
LineAlignment Specifies the vertical alignment of the string.
TrailingMarginFactor Gets or sets a value that is the fraction of the font em-size used as the horizontal trailing string margin.
Trimming Gets or sets the PdfStringTrimming enumeration for this PdfStringFormat object.

Methods

Name Description
Clone() Creates a copy of this PdfStringFormat object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also