graphic = new Graphic(); graphic.Attributes.Add("USER", Application.Current.GetUserName()); // Set other attributes ESRI.ArcGIS.Client.Geometry.Polygon poly = new ESRI.ArcGIS.Client.Geometry.Polygon(); poly.Rings.Add(new ESRI.ArcGIS.Client.Geometry.PointCollection()); poly.Rings[0].Add(new MapPoint(rect.XMin, rect.YMin)); poly.Rings[0].Add(new MapPoint(rect.XMin, rect.YMax)); poly.Rings[0].Add(new MapPoint(rect.XMax, rect.YMax)); poly.Rings[0].Add(new MapPoint(rect.XMax, rect.YMin)); graphic.Geometry = poly; featureLayer.Graphics.Add(graphic); featureLayer.SaveEdits();
if(editor.Cut.CanExecute(null)) editor.Cut.Execute(null); //where null is the Command parameter
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.