Click or drag to resize

PdfStringFormat Class

Represents the text layout information.
Inheritance Hierarchy
System Object
Spire.Pdf.Graphics PdfStringFormat

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public sealed class PdfStringFormat : ICloneable

The PdfStringFormat type exposes the following members.

Constructors
Name Description
Public method PdfStringFormat
Initializes a new instance of theclass.
Public method PdfStringFormat(String)
Initializes a new instance of theclass.
Public method PdfStringFormat(PdfTextAlignment)
Initializes a new instance of theclass.
Public method PdfStringFormat(PdfTextAlignment, PdfVerticalAlignment)
Initializes a new instance of theclass.
Top
Properties
Name Description
Public property Alignment
Gets or sets the text alignment.
Public property CharacterSpacing
Gets or sets value that indicates a size among the characters in the text. When the glyph for each character in the string is rendered, this value is added to the the glyphs displacement.
Public property ClipPath
Gets or sets a value indicating whether the text should be a part of the clipping path.
Public property HorizontalScalingFactor
Gets or sets the horizontal scaling factor.
Public property LineAlignment
Gets or sets the vertical text alignment.
Public property LineLimit
Only entire lines are laid out in the formatting rectangle. By default layout continues until the end of the text, or until no more lines are visible as a result of clipping, whichever comes first. Note that the default settings allow the last line to be partially obscured by a formatting rectangle that is not a whole multiple of the line height. To ensure that only whole lines are seen, specify this value and be careful to provide a formatting rectangle at least as tall as the height of one line.
Public property LineSpacing
Gets or sets value that indicates the vertical distance between the baselines of adjacent lines of text.
Public property MeasureTrailingSpaces
Includes the trailing space at the end of each line. By default the boundary rectangle returned by the MeasureString method of PdfFont excludes the space at the end of each line. Set this flag to include that space in measurement.
Public property NoClip
Overhanging parts of glyphs, and unwrapped text reaching outside the formatting rectangle are allowed to show. By default all text and glyph parts reaching outside the formatting rectangle are clipped.
Public property ParagraphIndent
Gets or sets the indent of the first line in the paragraph.
Public property RightToLeft
Gets or sets the value that indicates text direction mode.
Public property SubSuperScript
Gets or sets value indicating whether the text is in subscript or superscript mode.
Public property WordSpacing
Gets or sets value that indicates a size among the words in the text. Word spacing works the same way as character spacing but applies only to the space character, code 32.
Public property WordWrap
Gets or sets value indicating type of the text wrapping.
Top
Methods
Name Description
Public method Clone
Clones the object.
Public method Equals
Determines whether the specified object is equal to the current object.
(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 .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also