[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Drawing.TextMetricsProviderExtensions.MeasureString

MeasureString Method

MeasureString(ITextMetricsProvider, FontInfo, string, IStyle, float, float, CultureInfo)

Measures string content based on currently selected font, device capabilities and IStyle.

Declaration
public static TextMetrics MeasureString(this ITextMetricsProvider tm, FontInfo font, string contentText, IStyle style, float boundWidth, float boundHeight, CultureInfo reportCulture = null)
Parameters
Type Name Description
ITextMetricsProvider tm
FontInfo font
string contentText
IStyle style
float boundWidth
float boundHeight
CultureInfo reportCulture
Returns
Type Description
TextMetrics

Number of characters fit into provided bounds

MeasureString(ITextMetricsProvider, FontInfo, string, IStyle, StringFormatEx, float, float, CultureInfo)

Measures string content based on currently selected font, device capabilities, string format and IStyle.

Declaration
public static TextMetrics MeasureString(this ITextMetricsProvider tm, FontInfo font, string contentText, IStyle style, StringFormatEx stringFormat, float boundWidth = 3.4028235E+38, float boundHeight = 3.4028235E+38, CultureInfo reportCulture = null)
Parameters
Type Name Description
ITextMetricsProvider tm
FontInfo font
string contentText
IStyle style
StringFormatEx stringFormat
float boundWidth
float boundHeight
CultureInfo reportCulture
Returns
Type Description
TextMetrics

Number of characters fit into provided bounds