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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.