Click or drag to resize

PolygonEditState Methods

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release

The PolygonEditState type exposes the following members.

Methods
  NameDescription
Public methodApply
Finishes editing the polygon, saves any edits and returns to a selection state.
(Overrides BaseStateApply.)
Public methodBegin
Disables the map UI so that the map does not move following mouse events.
(Overrides BaseStateBegin.)
Public methodEnd
Validates the edited shape and re-enables the map UI.
(Overrides BaseStateEnd.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodOnMouseClick
On right click, deletes a highlighted vertex or applies any changes.
(Overrides BaseStateOnMouseClick(Object, MouseEventArgs).)
Public methodOnMouseDown
Selects a vertex to move or, if none is highlighted, inserts a new vertex on a left click.
(Overrides BaseStateOnMouseDown(Object, MouseEventArgs).)
Public methodOnMouseLeave
Mouse-leave handler for this state.
(Inherited from BaseState.)
Public methodOnMouseMove
Handles mouse movements by either checking whether a vertex or edge should be highlighted or moving a selected vertex.
(Overrides BaseStateOnMouseMove(Object, MouseEventArgs).)
Public methodOnMouseUp
Highlights the relevant edge or vertex if applicable
(Overrides BaseStateOnMouseUp(Object, MouseEventArgs).)
Public methodProject
Projects a LatLon into a point on the layer's map.
(Inherited from BaseState.)
Public methodRender
Renders all relevant shapes to the render context in the following order:
- All shapes apart from the entity being editing
- The selected entity
- The selected entity's edges (if highlighted)
- The selected entity's vertices (if highlighted)
- The selected entity's moving vertex (if a vertex is being moved).
(Overrides BaseStateRender(Graphics, RenderContext).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnproject
Unprojects a point on the layer's map into a LatLon.
(Inherited from BaseState.)
Top
See Also