Spread WPF 18
GrapeCity.Drawing Namespace / IDrawingContext Interface / MeasureText Method / MeasureText(TextDocument,TextFormat,Size) Method
The text document.
Base format of rich text.
The current boundary size.


In This Topic
    MeasureText(TextDocument,TextFormat,Size) Method
    In This Topic
    Measure the displayed size of rich text in context.
    Syntax
    'Declaration
     
    Overloads Function MeasureText( _
       ByVal text As TextDocument, _
       ByVal baseFormat As TextFormat, _
       ByVal size As Size _
    ) As Size
    'Usage
     
    Dim instance As IDrawingContext
    Dim text As TextDocument
    Dim baseFormat As TextFormat
    Dim size As Size
    Dim value As Size
     
    value = instance.MeasureText(text, baseFormat, size)
    Size MeasureText( 
       TextDocument text,
       TextFormat baseFormat,
       Size size
    )

    Parameters

    text
    The text document.
    baseFormat
    Base format of rich text.
    size
    The current boundary size.

    Return Value

    The Size represent displayed size of rich text.
    See Also