IDialogVisualizerService Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides methods that a visualizer can call to display System.Windows forms, dialogs, and controls.
public interface class IDialogVisualizerService
public interface class IDialogVisualizerService
__interface IDialogVisualizerService
public interface IDialogVisualizerService
type IDialogVisualizerService = interface
Public Interface IDialogVisualizerService
Examples
public class DebuggerSide : DialogDebuggerVisualizer
{
override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
{
ColorDialog myDialog = new ColorDialog();
windowService.ShowDialog(myDialog);
}
// Other class methods ommitted for clarity.
}
public class DebuggerSide : DialogDebuggerVisualizer
{
override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
{
ColorDialog myDialog = new ColorDialog();
windowService.ShowDialog(myDialog);
}
// Other class methods omitted for clarity.
}
Remarks
IDialogVisualizerService provides methods that a visualizer can call to display System.Windows forms, dialogs, and controls.
Methods
ShowDialog(CommonDialog) |
Displays a dialog that derives from System.Windows.Forms.CommonDialog. |
ShowDialog(Control) |
Displays any Windows Forms control derived from System.Windows.Forms.Control. |
ShowDialog(Form) |
Displays a Windows Form derived from System.Windows.Forms.Form. |