ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Drawing Namespace / TextMetricsProviderExtensions Class / MeasureString Method / MeasureString(ITextMetricsProvider,FontInfo,String,IStyle,Single,Single,CultureInfo) Method

In This Topic
    MeasureString(ITextMetricsProvider,FontInfo,String,IStyle,Single,Single,CultureInfo) Method
    In This Topic
    Measures string content based on currently selected font, device capabilities and GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle.
    Syntax
    'Declaration
     
    Public Overloads Shared Function MeasureString( _
       ByVal tm As ITextMetricsProvider, _
       ByVal font As FontInfo, _
       ByVal contentText As String, _
       ByVal style As IStyle, _
       ByVal boundWidth As Single, _
       ByVal boundHeight As Single, _
       Optional ByVal reportCulture As CultureInfo _
    ) As TextMetrics
    public static TextMetrics MeasureString( 
       ITextMetricsProvider tm,
       FontInfo font,
       string contentText,
       IStyle style,
       float boundWidth,
       float boundHeight,
       CultureInfo reportCulture
    )

    Parameters

    tm
    font
    contentText
    style
    boundWidth
    boundHeight
    reportCulture

    Return Value

    Number of characters fit into provided bounds
    See Also