[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Printing.PrintingContext.MeasureText

MeasureText Method

MeasureText(string, Font, Size, bool)

Measures the specified text string when drawn with the specified GrapeCity.Spreadsheet.Font.

Declaration
public abstract Size MeasureText(string text, Font font, Size limitSize = default, bool wrapText = false)
Public MustOverride Function MeasureText(text As String, font As Font, Optional limitSize As Size = Nothing, Optional wrapText As Boolean = False) As Size
Parameters
Type Name Description
string text

The string to measures.

Font font

GrapeCity.Spreadsheet.Font that defines the text format of the string.

Size limitSize

The limit size.

bool wrapText

The wrapText

Returns
Type Description
Size

A Size object.