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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.