On Mon, 31 Oct 2005 15:00:28 -0600, "Raj Chudasama"
<raj@asteriasgi_spamkiller.com> wrote:
http://msdn.microsoft.com/library/de...l/win32map.asp
??
hope that helps some :)
"Ken Wilson" <kw*********@NOshaw.SPAMca> wrote in message
news:4r********************************@4ax.com.. .I am currently working on a Visual Studio add-in. Does anyone know of
a simple way to get the line number the cursor is on in the
ActiveDocument? I don't necessarily need full code as long as someone
can point me in the right direction. Thanks in advance.
Ken Wilson
Seeking viable employment in Victoria, BC
That was a little more than I was looking for in regards to a running
Visual Studio but I have bookmarked it for future reference. I was
able to find similar code to what I needed for working with the Visual
Studio object. I'm posting it here in case anyone looks this thread
up seeking an answer. Thank you for your help.
---
object _applicationObject = (DTE2) Application; // passed by VS
....
int lineNumber;
lineNumber = ((TextSelection)
_applicationObject.ActiveDocument.Selection).Curre ntLine
---
Ken Wilson
Seeking viable employment in Victoria, BC