Update Note Geometry


PurposeDemonstrates how you can update the X and Y properties of the Geometry of a Polygon, Polyline or Point Note. This sample makes use of a class which provides the ability to get and set Points of Polygon, Polyline and Multipoint geometries without knowing in advance which type of Geometry you hold. Also demonstrates use of the MapItemClicked event.

How to use

See Using the samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Open and build the solution in Visual Studio.
  2. Open ArcGIS Explorer, and open a map which contains some Notes.
  3. Select the Add-Ins tab from the ArcGIS Explorer ribbon.
  4. Click the 'Edit Note Geometry' button to open the dockable window.
  5. Click on a Note in the map and the dockable window will show the coordinates of the Geometry of the Note.
  6. Change the values in the text boxes to update the X and Y coordinates of the Note Geometry. If you have clicked on a Note with Polygon, Polyline or Point Note then the vertices will be listed in the lower half of the window - click on a line in the list to update that specific vertex.
  7. Don't forget to save the map if you want to save the changes to the Notes you have edited.


  8. Update Note Geometry


Download the files for all languages
DockWindow.cs This class defines the dockable window, and also performs the geometry updating.
VertexGeometry.cs This class provides simple functionality for editing X and Y properties of Point and single part Polygon and Polyline geometries.
Download the C# files
DockWindow.vb This class defines the dockable window, and also performs the geometry updating.
VertexGeometry.vb This class provides simple functionality for editing X and Y properties of Point and single part Polygon and Polyline geometries.
Download the VB.NET files




Additional Requirements
  • A map containing various Notes