输入如下代码,用来添加书签
C# Code 1 2
3 4 5 6 7 8 9 10 11 12 13
public void creatbookmark(string sbookmarkname) {
IAOIBookmark aoibookmark = new AOIBookmarkClass(); if (aoibookmark != null) {
aoibookmark.Location = axMapControl1.ActiveView.Extent; = sbookmarkname; }
IMapBookmarks bookmarks = axMapControl1.Map as IMapBookmarks; if (bookmarks != null)
bookmarks.AddBookmark(aoibookmark);
跳转书签ToolStripMenuItem.DropDownItems.Add(); }