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