标签:code com list map using pair key called color
protected override Task<bool> OnSketchCompleteAsync(Geometry geometry) { QueuedTask.Run(() => { var deleteFeatures = new EditOperation(); deleteFeatures.Name = "Delete Features"; Polygon polygon = geometry as Polygon; //Delete all the selected features in the active view //Select using a polygon (for example) var selection = MapView.Active.SelectFeatures(polygon).Select( k => new KeyValuePair<MapMember, List<long>>(k.Key as MapMember, k.Value)); deleteFeatures.Delete(selection); //Execute to execute the operation //Must be called within QueuedTask.Run deleteFeatures.Execute(); }); return base.OnSketchCompleteAsync(geometry); }
标签:code com list map using pair key called color
原文地址:https://www.cnblogs.com/gisoracle/p/12572604.html