Spread WPF 18
GrapeCity.Drawing Namespace / IDrawingContext Interface / MeasureText Method / MeasureText(RichText,Font,Size,Boolean) Method
Rich text content.
Base font of rich text.
The current boundary size.
true if allow word wrap and false for otherwise.


In This Topic
    MeasureText(RichText,Font,Size,Boolean) Method
    In This Topic
    Measure the displayed size of rich text in context.
    Syntax
    'Declaration
     
    Overloads Function MeasureText( _
       ByVal richText As RichText, _
       ByVal baseFont As Font, _
       ByVal size As Size, _
       ByVal wordWrap As Boolean _
    ) As Size
    'Usage
     
    Dim instance As IDrawingContext
    Dim richText As RichText
    Dim baseFont As Font
    Dim size As Size
    Dim wordWrap As Boolean
    Dim value As Size
     
    value = instance.MeasureText(richText, baseFont, size, wordWrap)
    Size MeasureText( 
       RichText richText,
       Font baseFont,
       Size size,
       bool wordWrap
    )

    Parameters

    richText
    Rich text content.
    baseFont
    Base font of rich text.
    size
    The current boundary size.
    wordWrap
    true if allow word wrap and false for otherwise.

    Return Value

    The Size represent displayed size of rich text.
    See Also