PDFStringLayoutOptions¶
Namespace: O2S.Components.PDF4NET.Graphics
Defines various layout options for displaying text on page graphics.
Inheritance Object → PDFStringLayoutOptions
Constructors¶
PDFStringLayoutOptions()¶
Initializes a new PDFStringLayoutOptions object.
PDFStringLayoutOptions(PDFStringLayoutOptions)¶
Initializes a new PDFStringLayoutOptions object.
Parameters
source PDFStringLayoutOptions
Source layout options for initializing this object.
Properties¶
ForceLongWordsWrap¶
Gets or sets a flag indicating whether long words should wrap if they do not fit entirely on a single line.
Property Value
Boolean
True if long words are wrapped at character level if they do not fit entirely on a single line.
Height¶
Gets or sets the height of rectangle that defines the text location.
Property Value
Double
The height of text rectangle.
Remarks
The text is cut when its height is greater than this height. If this property is 0 or negative, its value is ignored and the text overflows.
HorizontalAlign¶
Gets or sets the horizontal alignment of text.
Property Value
PDFStringHorizontalAlign
Text horizontal alignment.
LineSpacingAdjustment¶
Gets or sets the line spacing adjustment.
Property Value
Double
Adjustment of the default line spacing.
Remarks
This property is added to default line spacing in order to increase or decrease the spacing between lines of text in a text box.
Rotation¶
Gets or sets the rotation angle of the text.
Property Value
Double
Text rotation angle in degrees.
Remarks
The text is rotated counterclockwise.
TextDirection¶
Gets or sets the text direction.
Property Value
PDFTextDirection
The direction of the written text.
VerticalAlign¶
Gets or sets the vertical alignment of text.
Property Value
PDFStringVerticalAlign
Vertical text alignment.
Width¶
Gets or sets the width of rectangle that defines the text location.
Property Value
Double
The width of text rectangle.
Remarks
The text is automatically wrapped when the text width is greater than this width. If this property is 0 or negative, its value is ignored and the text is not wrapped.
X¶
Gets or sets the X coordinate of the text anchor point.
Property Value
Double
X coordinate of text anchor point.
Remarks
The anchor point depends on the horizontal text alignment.
Y¶
Gets or sets the Y coordinate of the text anchor point.
Property Value
Double
Y coordinate of text anchor point.
Remarks
The anchor point depends on the vertical text alignment.