DrawingContext::Close Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Closes the DrawingContext and flushes the content. Afterward, the DrawingContext cannot be modified.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
virtual void Close() abstract

Exception Condition
ObjectDisposedException

This object has already been closed or disposed.

A DrawingContext must be closed before its content can be rendered, but after it has been closed, it cannot be modified. This call does not require all Push calls to have been Popped.

.NET Framework
Available since 3.0
Return to top
Show: