VisualTreeHelper::GetDrawing Method (Visual^)

 

Returns the drawing content of the specified Visual.

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

public:
static DrawingGroup^ GetDrawing(
	Visual^ reference
)

Parameters

reference
Type: System.Windows.Media::Visual^

The Visual whose drawing content is returned.

Return Value

Type: System.Windows.Media::DrawingGroup^

The drawing content of the Visual returned as a DrawingGroup type.

The following example shows how to retrieve the DrawingGroup from a visual object by using the GetDrawing method. A hit test is then performed on the geometry of each drawing in the DrawingGroup to determine which geometry was hit.

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

.NET Framework
Available since 3.0
Return to top
Show: