  | GlassMeasureCompositedText Method  | 
 
            Provides the size, in pixels, of the specified text.
            
 
    Namespace: 
   Ookii.Dialogs
    Assembly:
   Ookii.Dialogs (in Ookii.Dialogs.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static Size MeasureCompositedText(
	IDeviceContext dc,
	string text,
	Font font,
	TextFormatFlags textFormat
)
Public Shared Function MeasureCompositedText ( 
	dc As IDeviceContext,
	text As String,
	font As Font,
	textFormat As TextFormatFlags
) As Size
public:
static Size MeasureCompositedText(
	IDeviceContext^ dc, 
	String^ text, 
	Font^ font, 
	TextFormatFlags textFormat
)
static member MeasureCompositedText : 
        dc : IDeviceContext * 
        text : string * 
        font : Font * 
        textFormat : TextFormatFlags -> Size 
Parameters
- dc
 - Type: System.DrawingIDeviceContext
The device context in which to measure the text. - text
 - Type: SystemString
The text to measure. - font
 - Type: System.DrawingFont
The Font to apply to the measured text. - textFormat
 - Type: System.Windows.FormsTextFormatFlags
A bitwise combination of the TextFormatFlags values. 
Return Value
Type: 
SizeThe 
Size, in pixels, of 
text drawn with the specified 
font and format.
Exceptions
See Also