Assembly: Ookii.Dialogs (in Ookii.Dialogs.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
public static class Glass
Public NotInheritable Class Glass
public ref class Glass abstract sealed
Members
| All Members | Properties | Methods |
| Member | Description | |
|---|---|---|
| DrawCompositedText(IDeviceContext, String, Font, Rectangle, Padding, Color, Int32, TextFormatFlags) |
Draws composited text onto the glass area of a form.
| |
| ExtendFrameIntoClientArea(IWin32Window, Padding) |
Extends the glass window frame into the client area of the specified window.
| |
| IsDwmCompositionEnabled |
Gets a value that indicates whether desktop composition is enabled.
| |
| MeasureCompositedText(IDeviceContext, String, Font, TextFormatFlags) |
Provides the size, in pixels, of the specified text.
| |
| OSSupportsDwmComposition |
Gets a value that indicates whether the operating system supports composition through the Desktop Window Manager.
|
Remarks
This class provides functionality to extend the Windows Vista Aero glass window frame into a window's client area, and to draw text on the glass area.
The ExtendedForm class provides more comprehensive support for client area glass than using ExtendFrameIntoClientArea(IWin32Window, Padding) by using its GlassMargin property. In addition to the basic client area glass support, ExtendedForm will also respond to changes in the Desktop Window Manager state and enable/disable client area glass as necessary. It also allows the window to be dragged using the client area glass areas using the AllowGlassDragging property.