The Debugger service provides access to the Visual Studio debugger and its current mode properties.
Methods:
Name
|
Description
|
Break |
Causes the current process to pause its execution. This method waits for the debugger to enter break mode before returning. |
Break(Boolean) |
Causes the current process to pause its execution. Takes a boolean parameter which specifies whether this method should wait for the debugger to enter break mode before returning or return immediately. |
DetachAll |
Detaches the debugger from all attached programs. |
Read more…
The Constants service contains DXCore global constants for text commands. Unfortunately, it is not very useful at the moment.
The following fields are available:
Name
|
Description
|
TextCommandBegin |
The character constant for the text command begin. |
TextCommandEnd |
The character constant for the text command end. |
—–
Products: DXCore
Versions: 10.1 and up
VS IDEs: any
Updated: Oct/06/2010
ID: D020
The Color service provides methods for operations with a color, such as blending, brightening, inverting, etc.
Methods of this service:
Name |
Description |
AdjustBrightness(Color, Int32) |
Adjusts the brightness of a specified color by the specified amount. |
Blend(Color, Color) |
Blends two colors to produce a third color. |
Blend(Color, Color, Byte) |
Blends two colors to produce a third color with a specified percent of the first color. |
Invert(Color) |
Inverts a color. |
IsMatch(Color, Color) |
Determines if two colors are equivalent. |
IsMatch(Color, Color, Int32) |
Determines if two colors are equivalent with the specified tolerance used in the comparison. |
ReloadColors |
Loads custom color settings from storage. |
Read more…
The Breakpoint service provides methods for retrieving and toggling breakpoints in the IDE code editor.
Read more…
The Context service is responsible for the DXCore contexts system. It provides access to context providers and methods that report whether specified context is satisfied.
Read more…
Here is the list of services (and a few properties) DevExpress DXCore provides, which are accessible through the main CodeRush object:
Read more…
Here’s a sample code of how to programmatically verify a particular context inside of your DXCore plug-in. You may achieve this using the Context service like this:
CSharp code:
ContextResult result = CodeRush.Context.Satisfied(@"Focus\Documents\Source\Code Editor");
bool editorHasFocus = result == ContextResult.Satisfied;
Read more…