ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMBookmark Class / Location Property
Example

In This Topic
    Location Property (CIMBookmark)
    In This Topic
    Gets or sets the location.
    Syntax
    Public Property Location As Envelope
    public Envelope Location {get; set;}
    Example
    Update Extent for a Bookmark
    {
      // Note : Needs QueuedTask to run
      {
        //Get the bookmark's definition
        var bookmarkDef = oldBookmark.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
        oldBookmark.SetDefinition(bookmarkDef);
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also