views:

17

answers:

0

I want to do the following in my macro:

Dim selection As EnvDTE.TextSelection = CType(DTE.ActiveDocument.Selection, EnvDTE.TextSelection)
Dim selType As Type = Type.GetType(selection.Text)
// do some stuff with the type

But the problem is that the macro editor doesn't have a reference to my project, so it can't figure out how to get info about that type. Is there a way that I can do something like GetTypeFromCurrentProject()?