'Declaration Public Overloads Function MeasureFontSize( _
ByVal textString to measure.As System.String, _
ByVal fontPdfFont that defines the text format of the string.As Vintasoft.Imaging.Pdf.Tree.Fonts.PdfFont, _
ByVal textWidthMaximum width of the string in user units (1 / 72 inch).As Single, _
ByVal textHeightMaximum height, in user units (1 / 72 inch), of the layout area for the text.As Single, _
ByVal lineSpacingThe line spacing.As Single _
) As Single
public float MeasureFontSize(
System.String text,
Vintasoft.Imaging.Pdf.Tree.Fonts.PdfFont font,
float textWidth,
float textHeight,
float lineSpacing
)
public: float MeasureFontSize(
System.String text,
Vintasoft.Imaging.Pdf.Tree.Fonts.PdfFont* font,
float textWidth,
float textHeight,
float lineSpacing
)
public:
float MeasureFontSize(
System.String text,
Vintasoft.Imaging.Pdf.Tree.Fonts.PdfFont^ font,
float textWidth,
float textHeight,
float lineSpacing
)
Parameters
- text
- String to measure.
- font
- PdfFont that defines the text format of the string.
- textWidth
- Maximum width of the string in user units (1 / 72 inch).
- textHeight
- Maximum height, in user units (1 / 72 inch), of the layout area for the text.
- lineSpacing
- The line spacing.
Return Value
Measured font size.