ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Drawing Namespace / ITextMetricsProvider Interface / MeasureString Method

In This Topic
    MeasureString Method (ITextMetricsProvider)
    In This Topic
    Measures string content based on currently selected font, device capabilities, string format.
    Syntax
    'Declaration
     
    Function MeasureString( _
       ByVal font As FontInfo, _
       ByVal contentText As String, _
       ByVal stringFormat As StringFormatEx, _
       Optional ByVal boundWidth As Single, _
       Optional ByVal boundHeight As Single _
    ) As TextMetrics

    Parameters

    font
    contentText
    stringFormat
    boundWidth
    boundHeight

    Return Value

    The TextMetrics structure that contains numbers of lines of text and total chars fitted in available bounds and minimal desired bounds to fit the text.
    See Also