NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RichControl.CreateWindowGraphics

Creates a Graphics for the entire window of the control rather than just it's client area. The controls foreground color and background color become the default values for the Graphics. The returned Graphics must be disposed through a call to its dispose() method when it is no longer needed. The Graphics Object is only valid for the duration of the current window's message.

[Visual Basic]
Public Function CreateWindowGraphics() As Graphics
[C#]
public Graphics CreateWindowGraphics();
[C++]
public: Graphics* CreateWindowGraphics();
[JScript]
public function CreateWindowGraphics() : Graphics;

Return Value

the Graphics for this control.

See Also

RichControl Class | RichControl Members | System.WinForms Namespace