The Dialogs service provides methods for a DXCore internal dialogs manipulation. Currently it is used internally for selecting a text command or a string provider from the specified list, and is not very useful for plug-in developers at the moment.
There are two methods available:
Read more…
There are several project item wizards made for simplifying the DXCore visual adornments creation process:
- DXCoreAdornment – widespread adornments project item which consists of two main adornment objects bound to text coordinates: TextDocumentAdornment and VisualObjectAdornments.
- ViewPortAdornment – contains of EditorAdornment and ViewPortAdornment which can be added to a TextDocument or TextView and bound to screen or text view coordinates.
- TileVisual – contains of two DXCore tile adornment objects: TextDocumentTile and TileVisual to create tiles in the code editor. Tile adornments can react on mouse events.
Read more…
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 Visual Studio 2010 IDE shell has been rewritten using the Windows Presentation Foundation (WPF), in other words, it has a completely different code editor based on the new WPF technology. Earlier versions of DXCore used GDI and Win32 API calls to paint the inside code editor before Visual Studio 2010 release, and would not work inside the new code editor. To bring painting support to Visual Studio 2010 and leave the support of previous Visual Studio versions, DXCore has been also rewritten using the new painting abstraction layer, which has a split code base for different platforms (WPF, GDI). This abstraction layer is called the “Adornments” architecture. This architecture allows having a single code base for all versions of Visual Studio which helps to maintain both graphic platforms at once and have independent painting, non-dependant on the version of IDE used.
Read more…
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…