Archive

Author Archive

DXCore Services – IDE

November 8th, 2010 Comments off

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.

Read more…

DXCore Services – GUIDs

November 8th, 2010 Comments off

Not a really useful service at the moment. It contains only a single property called “Windows“, which is supposed to store a collection of GUIDs of Visual Studio hosted windows.

For now, there is only a single GUID called “HelpPage”, which returns a GUID for a Web Browser window hosted in Visual Studio. It is used to get a handle for a particular window in the integrated development environment (IDE), in order to gain access to its properties and methods.

—–
Products: DXCore
Versions: 10.1 and up
VS IDEs: any
Updated: Nov/08/2010
ID: D030

Code Gen – Declare Struct

November 5th, 2010 Comments off

Declare Struct code provider generates a structure for the current type reference to a non-existent type. If the type reference on the editor caret creates a new instance of a non-existent type that takes some arguments, the appropriate constructor is generated for the new structure:

CSharp:

CodeRush Declare Struct

Read more…

Code Gen – Declare Class

November 5th, 2010 Comments off

Declare Class code provider generates a class for the current type reference to a non-existent type. If the type reference on the editor caret creates a new instance of a non-existent type that takes some arguments, the appropriate constructor is generated for the new class.

CSharp:

CodeRush Declare Class

Read more…

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 the Language combobox on the Options Dialog is being populated

October 26th, 2010 Comments off

Some people are asking how the Language combobox is populated in the Options Dialog. Once you have installed IDE tools and open the Options Dialog, you will see that the Language combobox is empty. But after some work in Visual Studio IDE this combobox is being populated with items. So, when and how is it populated?

DXCore Options Dialog Language combobox

Read more…

Refactorings – Extract Interface

October 25th, 2010 Comments off

Extract Interface is a refactoring that provides an easy way to create a new interface with members that originate from an existing class or struct.

When several clients use the same subset of members from a class or struct, or when multiple classes or structs have a subset of members in common, it can be useful to embody the subset of members in an interface. The Extract Interface will help to create the new interface for you. Just place the caret on the type name and perform a refactoring.

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…