| 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
)
Public Shared Sub DrawCompositedText (
dc As IDeviceContext,
text As String,
font As Font,
bounds As Rectangle,
padding As Padding,
foreColor As Color,
glowSize As Integer,
textFormat As TextFormatFlags
)
public:
static void DrawCompositedText(
IDeviceContext^ dc,
String^ text,
Font^ font,
Rectangle bounds,
Padding padding,
Color foreColor,
int glowSize,
TextFormatFlags textFormat
)
static member DrawCompositedText :
dc : IDeviceContext *
text : string *
font : Font *
bounds : Rectangle *
padding : Padding *
foreColor : Color *
glowSize : int *
textFormat : TextFormatFlags -> unit
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 Remarks
Do not use this method to draw text on non-glass areas of a form.
See Also