Click or drag to resize

PolygonEntity Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
A polygon implementation of the shape entity type with relevant functionality for rendering polygons.
Inheritance Hierarchy

Namespace:  Telogis.GeoBase.ShapeUI
Assembly:  geobase.net (in geobase.net.dll) Version: 4.84.0.0
Syntax
public class PolygonEntity : ShapeEntity

The PolygonEntity type exposes the following members.

Constructors
  NameDescription
Public methodCode examplePolygonEntity
Creates a polygon entity on the supplied layer with the supplied geometry.
Top
Properties
  NameDescription
Public propertyBoundingBox
The bounding box of this shape.
(Inherited from ShapeEntity.)
Public propertyFill
Determines the color / style of the inside of the shape.
(Inherited from ShapeEntity.)
Public propertyIsHighlighted
Whether the entire shape is highlighted
(Inherited from ShapeEntity.)
Public propertyIsSelected
Whether this shape is selected.
(Inherited from ShapeEntity.)
Public propertyOutline
Determines the color / style of the outline of the shape.
(Inherited from ShapeEntity.)
Public propertyPolygon
The underlying polygon object.
Public propertyPriority
The rendering priority of this shape.
(Inherited from ShapeEntity.)
Public propertyTag
A tag for the entity, can be used to model any relevant data for the entity.
(Inherited from ShapeEntity.)
Top
Methods
  NameDescription
Public methodAddVertex
Add a new vertex at the end of the polygon.
Public methodBeginEditing
Returns the PolygonEditState when the layer begins editing this shape.
(Overrides ShapeEntityBeginEditing.)
Public methodDeleteVertex
Deletes the last modified (added, inserted or moved) point.
Public methodDeleteVertex(Int32)
Deletes the vertex with the specified index.
Public methodEquals (Inherited from Object.)
Public methodGetArea
Gets the total area of the polygon using a Pythagorean approximation.
(Overrides ShapeEntityGetArea.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetPoints
Gets the polygon's vertices.
Public methodGetType (Inherited from Object.)
Public methodHitTest
Checks whether a location is within this polygon.
(Overrides ShapeEntityHitTest(LatLon).)
Public methodInsertVertex
Inserts a vertex between two other vertices.
Public methodMoveVertex
Moves an existing vertex to a new location.
Public methodRender
Renders the underlying polygon.
(Overrides ShapeEntityRender(Graphics, RenderContext).)
Public methodRenderEdge
Renders a specific edge. The edge is the one that starts at the vertex with the specified index and ends at the next vertex.
Public methodRenderVertex
Renders a specific vertex.
Public methodToString (Inherited from Object.)
Public methodValidateShape
Determines whether the polygon is a complete loop, in which case it is valid.
(Overrides ShapeEntityValidateShape.)
Top
Events
  NameDescription
Public eventBoundingBoxChanged
Event that is fired when the shape's bounding box changes.
(Inherited from ShapeEntity.)
Public eventFillChanged
Event that is fired when the shape's fill brush changes.
(Inherited from ShapeEntity.)
Public eventGeometryChanged
Event that is fired when the shape's geometry changes.
(Inherited from ShapeEntity.)
Public eventIsHighlightedChanged
Event that is fired when the shape is highlighted or un-highlighted.
(Inherited from ShapeEntity.)
Public eventIsSelectedChanged
Event that is fired when the shape is selected or unselected.
(Inherited from ShapeEntity.)
Public eventOutlineChanged
Event that is fired when the shape's outline pen changes.
(Inherited from ShapeEntity.)
Public eventTagChanged
Event that is fired when the shape's tag changes.
(Inherited from ShapeEntity.)
Top
See Also