DrawingVisual::Drawing Property


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

Gets the drawing content of the DrawingVisual object.

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

property DrawingGroup^ Drawing {
	DrawingGroup^ get();

Property Value

Type: System.Windows.Media::DrawingGroup^

Gets a value of type DrawingGroup that represents the collection of Drawing objects in the DrawingVisual.

A visual object stores its rendering data as a vector graphics instruction list. Each item in the instruction list represents a low-level set of graphics data in a serialized format. For more information on how visual objects store graphics data, see WPF Graphics Rendering Overview.

Any change to the returned DrawingGroup value is not persisted by the DrawingVisual.

In the following example, the DrawingGroup value of each DrawingVisual in a host visual is enumerated.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top