[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Drawing.ITextMetricsProvider.MeasureString

MeasureString Method

MeasureString(FontInfo, string, StringFormatEx, float, float)

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

Declaration
TextMetrics MeasureString(FontInfo font, string contentText, StringFormatEx stringFormat, float boundWidth = 3.4028235E+38, float boundHeight = 3.4028235E+38)
Parameters
Type Name Description
FontInfo font
string contentText
StringFormatEx stringFormat
float boundWidth
float boundHeight
Returns
Type Description
TextMetrics

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.