Parameters
- bookmark
- The bookmark to move.
- newIndex
- The new index to move the bookmark to.
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
public Task MoveBookmarkToTopAsync(Map map, string name) { return QueuedTask.Run(() => { //Find the first bookmark with the name var bookmark = map.GetBookmarks().FirstOrDefault(b => b.Name == name); if (bookmark == null) return; //Remove the bookmark map.MoveBookmark(bookmark, 0); }); }
Target Platforms: Windows 11, Windows 10