Measures the specified string when drawn with the specified Font
object and formatted with the specified StringFormat object.
Namespace:
C1.Silverlight.PdfAssembly: C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)
Syntax
C# |
---|
public Size MeasureString( string text, Font font, double width, StringFormat fmt ) |
Visual Basic |
---|
Public Function MeasureString ( _ text As String, _ font As Font, _ width As Double, _ fmt As StringFormat _ ) 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.
- width
- Type: System..::..Double
Maximum width of the string.
- fmt
- Type: C1.Silverlight.Pdf..::..StringFormat
A StringFormat object that determines whether word wrapping is allowed.