Share via


VisualizerDevelopmentHost.ShowVisualizer Method (Control)

Namespace:  Microsoft.VisualStudio.DebuggerVisualizers
Assembly:  Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)

Syntax

'Declaration
Public Sub ShowVisualizer ( _
    parentControl As Control _
)
public void ShowVisualizer(
    Control parentControl
)
public:
void ShowVisualizer(
    Control^ parentControl
)
member ShowVisualizer : 
        parentControl:Control -> unit
public function ShowVisualizer(
    parentControl : Control
)

Parameters

Remarks

Calls the visualizer development host to show the visualizer, passing a control that you want the visualizer parented to.

Examples

// Create a new Control
Control myControl = new Control();
// ... 

// Create the visualizer host
VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost(objectToVisualize, typeof(SecondVisualizer));
// Call the visualizer host to show the visualizer
visualizerHost.ShowVisualizer(myControl);

.NET Framework Security

See Also

Reference

VisualizerDevelopmentHost Class

ShowVisualizer Overload

Microsoft.VisualStudio.DebuggerVisualizers Namespace