The Editor service provides methods and properties for the IDE code editor. It is is similar to the Designer service.
Here are its methods:
Name
|
Description
|
Activate(Document) |
Activates (gives focus to) or opens the form designer for the specified document. |
Activate(Document, Boolean) |
Activates (gives focus to) or opens the form designer for the specified document. Takes a boolean parameter that specifies whether to force opening a designer for the document if it is not found. |
ShowDesigner |
Shows the code view corresponding to the current designer. |
ToggleCodeAndDesignerViews |
Switches the view between code and designer views. |
Read more…
Note, this article has been moved to the official DevExpress Support Center site. Please refer to the moved article as it might have further updates or additional comments. Thank you.
To programmatically add a file to a specific project that depends upon another file (DependentUpon), you can use methods from the DXCore Solution service.
Consider the following solution structure:

Read more…
Note, this article has been moved to the official DevExpress Support Center site. Please refer to the moved article as it might have further updates or additional comments. Thank you.
To programmatically add a file to a specific project, you can use the AddFileToProject method from the DXCore Solution service. Here is its definition:
public void AddFileToProject(string projectName, string filePath)
This method adds the specified file to the project with the given name. The project must be open in Visual Studio and be part of the active solution.
Read more…
The Solution service provides methods for adding, removing, and renaming project items of the current opened solution.
Read more…
The Designer service provides methods for Windows Forms design-time support. It is similar to the Editor service.
Here they are:
Name
|
Description
|
Activate(Document) |
Activates (gives focus to) or opens the form designer for the specified document. |
Activate(Document, Boolean) |
Activates (gives focus to) or opens the form designer for the specified document. Takes a boolean parameter that specifies whether to force opening a designer for the document if it is not found. |
ShowCodeView |
Shows the code view corresponding to the current designer. |
ToggleCodeAndDesignerViews |
Switches the view between code and designer views. |
Read more…
The DynamicLists service provides methods for working with dynamic lists. Note, that it is only used internally and hidden from Intellisense but can be used for your purposes if needed.
Read more…
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…