PdfStringLayouter
Layout Method
|
Layouts the text.
Namespace:
Spire.Pdf.Graphics
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public PdfStringLayoutResult Layout(
string text,
PdfFontBase font,
PdfStringFormat format,
SizeF size
)
Public Function Layout (
text As String,
font As PdfFontBase,
format As PdfStringFormat,
size As SizeF
) As PdfStringLayoutResult
public:
PdfStringLayoutResult^ Layout(
String^ text,
PdfFontBase^ font,
PdfStringFormat^ format,
SizeF size
)
member Layout :
text : string *
font : PdfFontBase *
format : PdfStringFormat *
size : SizeF -> PdfStringLayoutResult
Parameters
-
text
-
Type:
System
String
String text.
-
font
-
Type:
Spire.Pdf.Graphics
PdfFontBase
Font for the text.
-
format
-
Type:
Spire.Pdf.Graphics
PdfStringFormat
String format.
-
size
-
Type:
System.Drawing
SizeF
Bounds of the text.
Return Value
Type:
PdfStringLayoutResult
Layout result.
See Also