I am editing vs add-in. I need to get text from the beginning of the document to the current position.
Printable View
I am editing vs add-in. I need to get text from the beginning of the document to the current position.
*What* are you "editing"?
What is EnvDTE? :confused:
Check out Document.Selection Property
I have not used it, but you could try EditPoint.GetText Method
I don't understand how to use EditPoint. Can anybody help?