PDF for UWP | ComponentOne
C1.Xaml.Pdf Namespace / C1PdfDocument Class / MeasureString Method / MeasureString(String,Font) Method
String to measure.
Font object that defines the appearance and size of the text.

In This Topic
    MeasureString(String,Font) Method
    In This Topic
    Measures the specified string when drawn with a given Font object.
    Syntax
    'Declaration
     
    
    Public Overloads Function MeasureString( _
       ByVal text As String, _
       ByVal font As Font _
    ) As Size
    public Size MeasureString( 
       string text,
       Font font
    )

    Parameters

    text
    String to measure.
    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.
    See Also