ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping.Events Namespace / BeforeSketchCompletedEvent Class
Members Version

BeforeSketchCompletedEvent Class
Occurs before a sketch is completed.
Object Model
BeforeSketchCompletedEvent ClassSubscriptionToken ClassSubscriptionToken Class
Syntax
public sealed class BeforeSketchCompletedEvent : ArcGIS.Core.Events.AsyncPresentationEvent<BeforeSketchCompletedEventArgs> 
Remarks
You can Subscribe to listen for the BeforeSketchCompletedEvent and specify a delegate that will be executed upon receiving the event. To stop listening, you can Unsubscribe.

The following are examples of tools that publish the sketch events - construction tools, Edit Vertices, Align Features, Reshape.

The BeforeSketchCompletedEvent fires when a sketch is finished but before the SketchCompletedEvent and MapTool.OnSketchCompleteAsync. This event can be used to read the current sketch geometry and update it via the BeforeSketchCompletedEventArgs.SetSketchGeometry method. If there are multiple listeners to the event, each gets the latest modified sketch geometry from the previous listener.
Inheritance Hierarchy

System.Object
   ArcGIS.Core.Events.EventBase
      ArcGIS.Core.Events.AsyncPresentationEvent<TPayload>
         ArcGIS.Desktop.Mapping.Events.BeforeSketchCompletedEvent

Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also