IDialogVisualizerService 介面
命名空間: Microsoft.VisualStudio.DebuggerVisualizers
組件: Microsoft.VisualStudio.DebuggerVisualizers (在 Microsoft.VisualStudio.DebuggerVisualizers.dll 中)
語法
'宣告
Public Interface IDialogVisualizerService
public interface IDialogVisualizerService
public interface class IDialogVisualizerService
type IDialogVisualizerService = interface end
public interface IDialogVisualizerService
方法
名稱 | 描述 | |
---|---|---|
ShowDialog(CommonDialog) | ||
ShowDialog(Control) | ||
ShowDialog(Form) |
回頁首
備註
IDialogVisualizerService 提供方法,讓視覺化檢視可以呼叫顯示 System.Windows 表單、對話方塊和控制項。
範例
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.
}