public event EventHandler ElevationProfileGraphRemoved
Public Event ElevationProfileGraphRemoved As EventHandler
public event EventHandler ElevationProfileGraphRemoved
Public Event ElevationProfileGraphRemoved As EventHandler
public void ElevationProfileGraphAdded() { var mv = MapView.Active; // subscribe to the Added, Removed events for the elevation profile graph mv.ElevationProfileGraphAdded += Mv_ElevationProfileGraphAdded; mv.ElevationProfileGraphRemoved += Mv_ElevationProfileGraphRemoved; } private void Mv_ElevationProfileGraphRemoved(object sender, EventArgs e) { ; } private void Mv_ElevationProfileGraphAdded(object sender, EventArgs e) { // get the elevation profile graph from the view // this will be non-null since we are in a ElevationProfileGraphAdded handler var mv = MapView.Active; var graph = mv.GetElevationProfileGraph(); // subscribe to the ContentLoaded event graph.ContentLoaded += Graph_ContentLoaded; } private void Graph_ContentLoaded(object sender, EventArgs e) { // get the elevation profile graph var graph = sender as ArcGIS.Desktop.Mapping.ElevationProfileGraph; // get the elevation profile geometry var polyline = graph.Geometry; // get the elevation profile statistics var stats = graph.ElevationProfileStatistics; }
Target Platforms: Windows 11, Windows 10