Visual Basic (Declaration) | |
---|---|
Public Function CreateGraphics() As Graphics |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public Graphics CreateGraphics() |
C++/CLI | |
---|---|
public: Graphics CreateGraphics(); |
The returned Graphics object must be disposed of 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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family