VisualTreeHelper::GetDrawing Method (Visual^)
.NET Framework (current version)
Returns the drawing content of the specified Visual.
Assembly: PresentationCore (in PresentationCore.dll)
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.
.NET Framework
Available since 3.0
Available since 3.0
Show: