PdfStyledFieldWidget
CalculateSingleLineFieldFontSize Method
|
Calculate font size in single line field
Namespace:
Spire.Pdf.Widget
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
protected float CalculateSingleLineFieldFontSize(
PdfFontBase originFont,
RectangleF rect,
string text
)
Protected Function CalculateSingleLineFieldFontSize (
originFont As PdfFontBase,
rect As RectangleF,
text As String
) As Single
protected:
float CalculateSingleLineFieldFontSize(
PdfFontBase^ originFont,
RectangleF rect,
String^ text
)
member CalculateSingleLineFieldFontSize :
originFont : PdfFontBase *
rect : RectangleF *
text : string -> float32
Parameters
-
originFont
-
Type:
Spire.Pdf.Graphics
PdfFontBase
-
rect
-
Type:
System.Drawing
RectangleF
-
text
-
Type:
System
String
Return Value
Type:
Single
See Also