views:

40

answers:

1

Is it possible to subscribe to selection change event in visual studio 2010 add in, or any other way to detect that event?

this is what i need to do:

  1. User click anywhere in a c# code file.
  2. I need to know where the user is: Property,Function,Class,Delegate,etc.

Ideas? thanks.

A: 

I can't remember the exact name for this but take a look here: alt text

You already know where the user is by looking at the Two Drop-downs (just below the fileNames tabs)

These drop downs have different icons for methods, classes, properties,......

VoodooChild
But i am developing an extension, how can i read that value? and in order to find any documentation, i need its name! any guess?
Fraga
ohh..I see. No I don't know the answer to that
VoodooChild