Archive

Archive for the ‘DXCore’ Category

DXCore Services – Editor

October 27th, 2010 Comments off

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…

How to add a file that depends upon another file

October 23rd, 2010 Comments off

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:

DXCore Solution Explorer structure sample

Read more…

How to add a file to a particular project

October 22nd, 2010 Comments off

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…

DXCore Services – Solution

October 21st, 2010 Comments off

The Solution service provides methods for adding, removing, and renaming project items of the current opened solution.

Read more…

DXCore Services – Designer

October 11th, 2010 Comments off

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…

DXCore Services – DynamicLists

October 6th, 2010 Comments off

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…

DXCore Services – Dialogs

October 6th, 2010 Comments off

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…

DXCore adornments creation and wizards

October 6th, 2010 Comments off

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…