DrawingContext.Close Method

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

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

public abstract void Close ()
public abstract void Close ()
public abstract function Close ()
You cannot use methods in XAML.

Exception typeCondition

ObjectDisposedException

This object has already been closed or disposed.

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: