Keyoti RapidSpell Desktop .NET API Docs
MeasureDisplayStringWidth Method (graphics, text, font, maxWidth, formatString)
APIKeyoti.RapidSpell.GridGridUtilitiesMeasureDisplayStringWidth(Graphics, String, Font, Int32, String)
Keyoti RapidSpell Desktop .NET
Calculates the width of a string.
Declaration Syntax
C#C#Visual BasicVisual BasicVisual C++Visual C++F#F#
public static int MeasureDisplayStringWidth(
	Graphics graphics,
	string text,
	Font font,
	int maxWidth,
	string formatString
)
public static int MeasureDisplayStringWidth(
	Graphics graphics,
	string text,
	Font font,
	int maxWidth,
	string formatString
)
Public Shared Function MeasureDisplayStringWidth ( 
	graphics As Graphics,
	text As String,
	font As Font,
	maxWidth As Integer,
	formatString As String
) As Integer
Public Shared Function MeasureDisplayStringWidth ( 
	graphics As Graphics,
	text As String,
	font As Font,
	maxWidth As Integer,
	formatString As String
) As Integer
public:
static int MeasureDisplayStringWidth(
	Graphics^ graphics, 
	String^ text, 
	Font^ font, 
	int maxWidth, 
	String^ formatString
)
public:
static int MeasureDisplayStringWidth(
	Graphics^ graphics, 
	String^ text, 
	Font^ font, 
	int maxWidth, 
	String^ formatString
)
static member MeasureDisplayStringWidth : 
        graphics : Graphics * 
        text : string * 
        font : Font * 
        maxWidth : int * 
        formatString : string -> int 
static member MeasureDisplayStringWidth : 
        graphics : Graphics * 
        text : string * 
        font : Font * 
        maxWidth : int * 
        formatString : string -> int 
Parameters
graphics (Graphics)
The graphics context
text (String)
The string to measure
font (Font)
The font the string is written in
maxWidth (Int32)
The maximum point to measure to (set to 1000 if uncertain).
formatString (String)
Format string used on the text. ("" if unspecified).
Return Value

Assembly: Keyoti.RapidSpell.NET4 (Module: Keyoti.RapidSpell.NET4.dll) Version: 6.2.21.412