473,395 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Visual Studio Add-in

I am developing Visual Studio add-in by using VS2003 C#

I am trying to handle bookmarks by name , filename , line in XML
document.
Projects works fine . I can get bookmark name , filename and line
number when user add a bookmark on a file. But if end user delete a
line or add a line my bookmarks lines are going wrong.

How can i get how many lines added , deleted in _LineChanged event ?

private void x_textEditorEvents_LineChanged(TextPoint StartPoint,
TextPoint EndPoint, int Hint)
What 's that hint ?

x_textEditorEvents = events.get_TextEditorEvents (Filter);
What 's that filter ?

My experiences :

private EnvDTE.TextEditorEvents x_textEditorEvents = null ;

EnvDTE.Events events;

events = applicationObject.Events;

x_textEditorEvents = events.get_TextEditorEvents (null);

x_textEditorEvents.LineChanged +=(new
_dispTextEditorEvents_LineChangedEventHandler(x_te xtEditorEvents_LineChanged));

private void x_textEditorEvents_LineChanged(TextPoint StartPoint,
TextPoint EndPoint, int Hint)

{

//vsTextChangedMultiLine 1 A change to text occurred that affected
more than one line, such as pasting with newlines, deleting across
lines, replace all, and so forth.

//vsTextChangedSave 2 A line was committed by saving the file.

//vsTextChangedCaretMoved 4 The insertion point was moved.

//vsTextChangedReplaceAll 8 A replace all operation occurred.

//vsTextChangedNewLine 16 A new line was created.

//vsTextChangedFindStarting

//MessageBox.Show ("x_textEditorEvents_LineChanged");

}
Nov 17 '05 #1
2 3435
> private void x_textEditorEvents_LineChanged(TextPoint StartPoint,
TextPoint EndPoint, int Hint)
What 's that hint ?
That hint is intended to tell you what caused the event, but in practice
won´t give you enough information.
x_textEditorEvents = events.get_TextEditorEvents (Filter);
What 's that filter ?


The TextDocument where you want to receive events for, or null if you want
all text documents.
This is not the best newsgroup for add-ins questions. I'd suggest you to use

microsoft.public.vsnet.ide
microsoft.public.vstudio.extensibility

or the best one: http://groups.yahoo.com/group/vsnetaddin/
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com


Nov 17 '05 #2
Thank you .
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rene Muench | last post by:
Hi everyone, Newbie is wondering after he has up graded to Visual studio.net 2003, if Visual studio.net 2003 requires a different setup?? Most of the test application aren't working anymore. I...
1
by: Rene Muench | last post by:
Hi everyone, Newbie is wondering after he has up graded to Visual studio.net 2003, if Visual studio.net 2003 requires a different setup?? Most of the test application aren't working anymore. I...
19
by: Alf P. Steinbach | last post by:
// As usual the error message directs one to the report the bug. // // And as usual there is absolutely no way to do so without paying for // the privilege... // // Or using three or four hours...
1
by: Daniel A. Thomas | last post by:
License required Maybe you don't have this but have one of the products that qualifies for the upgrade such as ... Visual Studio .NET 2003 Professional Visual Studio .NET 2003 Professional...
5
by: Slawomir Piotrowski | last post by:
Hello, I'm writing C# code and executing it using InstallUtilLib.dll from custom action during an installation process. It works fine. I've written some code to add an item (component) to...
0
by: Ryan | last post by:
I have been developing an ASP.NET application using Visual Studio 2003 and MSDE. While developing the application, I can easily add or delete database tables, stored procedures, etc. Recently, I...
0
by: SatishPasala | last post by:
Hi I am developing a Windows Mobile application. I want Visual Studio to use Palm Simulator to display the application. Now it is pointing to Default Simulator. I downloaded the Palm...
4
by: Andrew Robinson | last post by:
My main dev machine has WinXp and VS2005 (pro). 1. I need to install VWD Express Edition so that I can do some instruction on this. Any issues with both on the same machine. Installation order?...
5
by: dougdoc | last post by:
We are exploring doing some development with MS Visual Studio 2005 to access our DB2 UDB for Windows databases. Are there any other options to accessing DB2 with Visual Studio that may be more...
0
by: marathoner | last post by:
I am currently migrating my Visual C++ 6.0 applications to Visual Studio 2005. I am getting compiler errors involving the VS2005's platform SDK. When I removed directory references to that SDK,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.