Measures the specified string when drawn with a given Font object.
Namespace:
C1.Silverlight.PdfAssembly: C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)
Syntax
C# |
---|
public Size MeasureString( string text, Font font ) |
Visual Basic |
---|
Public Function MeasureString ( _ text As String, _ font As Font _ ) As Size |
Parameters
- text
- Type: System..::..String
String to measure.
- font
- Type: C1.Silverlight.Pdf..::..Font
Font object that defines the appearance and size of the text.
Return Value
The size of the string expressed in points.Remarks
This overload returns the width and height of the string without wrapping.
Unless the text parameter contains line break characters, the
height returned corresponds to the font height.