Click or drag to resize

GlassDrawCompositedText Method

Draws composited text onto the glass area of a form.

Namespace:  Ookii.Dialogs
Assembly:  Ookii.Dialogs (in Ookii.Dialogs.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void DrawCompositedText(
	IDeviceContext dc,
	string text,
	Font font,
	Rectangle bounds,
	Padding padding,
	Color foreColor,
	int glowSize,
	TextFormatFlags textFormat
)

Parameters

dc
Type: System.DrawingIDeviceContext
The IDeviceContext onto which the composited text should be drawn.
text
Type: SystemString
The text to draw.
font
Type: System.DrawingFont
The Font to apply to the drawn text.
bounds
Type: System.DrawingRectangle
The Rectangle that represents the bounds of the text.
padding
Type: System.Windows.FormsPadding
The Padding around the text; necessary to allow space for the glow effect.
foreColor
Type: System.DrawingColor
The Color to apply to the drawn text.
glowSize
Type: SystemInt32
Specifies the size of a glow that will be drawn on the background prior to any text being drawn.
textFormat
Type: System.Windows.FormsTextFormatFlags
A bitwise combination of the TextFormatFlags values.
Exceptions
ExceptionCondition
NotSupportedExceptionThe current operating system does not support glass, or the Desktop Window Manager is not enabled.
ArgumentNullExceptiondc, text or font is .
Remarks

Do not use this method to draw text on non-glass areas of a form.

See Also