[]
        
(Showing Draft Content)

C1.Excel.FontExtensions.GetMeasure

GetMeasure Method

GetMeasure(Font, float, bool, bool, string)

Gets text measure as SizeF of this font.

Declaration
[CLSCompliant(false)]
public static SizeF GetMeasure(this Font font, float fontSize, bool bold, bool italic, string text)
<CLSCompliant(False)>
Public Shared Function GetMeasure(font As Font, fontSize As Single, bold As Boolean, italic As Boolean, text As String) As SizeF
Parameters
Type Name Description
Font font

The GrapeCity.Documents.Text.Font object for the extension.

float fontSize

The font size.

bool bold

The bold emulation flag.

bool italic

The italic emulation flag.

string text

The text for measuring.

Returns
Type Description
SizeF

The size in points of the text for this font.