public void SetDefinition( CIMBookmark bookmark )
Public Sub SetDefinition( _ ByVal bookmark As CIMBookmark _ )
Parameters
- bookmark
- The definition used to update the bookmark.
public void SetDefinition( CIMBookmark bookmark )
Public Sub SetDefinition( _ ByVal bookmark As CIMBookmark _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
public Task UpdateBookmarkExtentAsync(Bookmark bookmark, ArcGIS.Core.Geometry.Envelope envelope) { return QueuedTask.Run(() => { //Get the bookmark's definition var bookmarkDef = bookmark.GetDefinition(); //Modify the bookmark's location bookmarkDef.Location = envelope; //Clear the camera as it is no longer valid. bookmarkDef.Camera = null; //Set the bookmark definition bookmark.SetDefinition(bookmarkDef); }); }
public Task UpdateBookmarkExtentAsync(Bookmark bookmark, ArcGIS.Core.Geometry.Envelope envelope) { return QueuedTask.Run(() => { //Get the bookmark's definition var bookmarkDef = bookmark.GetDefinition(); //Modify the bookmark's location bookmarkDef.Location = envelope; //Clear the camera as it is no longer valid. bookmarkDef.Camera = null; //Set the bookmark definition bookmark.SetDefinition(bookmarkDef); }); }
Target Platforms: Windows 11, Windows 10, Windows 8.1