DXCore Services – IDE
November 8th, 2010
The IDE service contains properties of the main Visual Studio IDE window. The service reference itself (“CodeRush.IDE“) can be used as an instance of the IWin32Window type to the Visual Studio IDE window. So, for example, if you’d like to show a modal dialog and want to have the main IDE window as its owner, pass the CodeRush.IDE reference as a parameter to the “ShowDialog” method call of the dialog window.
Here are properties of this service:
Name |
Description |
Handle | Handle of the main window in the IDE. Satisfies the IWin32Window interface. Forms displayed modally should pass CodeRush.IDE as a parameter to their ShowDialog method. |
IsActive | Returns true if the IDE is the active (foreground) application. |
IsMenuActive | Returns true if a main menu is active. |
IsModal | Gets whether or not the IDE is a modal state. |
IsSysMenuActive | Returns true if a system menu is active. |
Mode | Returns an instance of the IDEMode enumeration type (Debug or Design) of the IDE. |
ShuttingDown | Returns true if the IDE is currently shutting down. |
WindowState | Returns the window state of the IDE. |