1. The main functions of this article are as follows:
1. Add bookmarks
2. Delete bookmarks
3. Locate bookmarks
2. Application Software: vs2010
3. Implementation Process
3.1 first create a WPF project, named addlabel
3.2 Based on the content in the function layout window, two windows are used:
The main window is used to store the RichTextBox Control.
Controls for bookmarking in subwindow Storage
The layout picture is as follows:
3.3 implement the functions of each control based on the layout.
3.3.1 add bookmarks: add the names of the bookmarks to ListBox and add the names and bookmarksArticleSave
In the position.txt file, you can view the previously added bookmarks when you open the bookmarks.
3.3.2 Delete bookmarks: delete the name of the bookmarks in ListBox and delete the names and locations of the bookmarks in position.txt.
3.3.3 bookmarks positioning: Click the location where the bookmarks are saved in the article.