Click or drag to resize

MapPolygon Class

This class represents a polygon on the map.

See the Shape Layer Concept topic for an example.

Inheritance Hierarchy

Namespace:  Ptv.XServer.Controls.Map.Layers.Shapes
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public class MapPolygon : MapPolyline

The MapPolygon type exposes the following members.

Constructors
  NameDescription
Public methodMapPolygon
Initializes a new instance of the MapPolygon class. Initializes the ScaleFactor to 0.0.
Top
Properties
  NameDescription
Protected propertyDefiningGeometry
Gets a value that represents the geometry of the shape.
(Inherited from MapPolylineBase.)
Public propertyGeoTransform
Gets or sets a method which transforms a point from one coordinate system to another.
(Inherited from MapShape.)
Public propertyMapStrokeThickness
Gets or sets the map stroke thickness.
(Inherited from MapShape.)
Public propertyPoints
Gets or sets the points of the polyline.
(Inherited from MapPolylineBase.)
Public propertyScaleFactor
Gets or sets the scale factor. See ScaleFactorProperty.
(Inherited from MapShape.)
Public propertyTransformedPoints
Gets or sets the transformed points. The transformed points are a collection of points which have been transformed to the currently applied spatial reference system. This property helps to improve performance since the point transformation is only done once.
(Inherited from MapPolylineBase.)
Top
Methods
  NameDescription
Protected methodBuildGeometry
Creates a new Geometry object by means of a set of PointCollections.
Protected methodClipShape
Clip the Polygon object.
(Overrides MapPolylineClipShape(MapView, UpdateMode, Boolean).)
Public methodCurrentThickness
Retrieves the thickness for lines depending on the current scale.
(Inherited from MapShape.)
Protected methodNeedsUpdate
Indicates if the update process should be started or not.
(Inherited from MapShape.)
Protected methodTransformShape
Transforms the polyline object according the transformation provided by GeoTransform.
(Inherited from MapPolyline.)
Public methodUpdateShape
Update the properties of the shape, according the current scale of the MapView object.
(Overrides MapPolylineUpdateShape(MapView, UpdateMode, Boolean).)
Top
Fields
  NameDescription
Protected fieldData
Contains the geometry provided by property DefiningGeometry.
(Inherited from MapPolylineBase.)
Top
Extension Methods
  NameDescription
Public Extension MethodEnvelope
Create the minimal bounding rectangle around a shape object.
(Defined by RectExtensions.)
Public Extension MethodFindRelativeT
Finds an object of type T for a framework element which is somewhere in the visual tree.
(Defined by MapElementExtensions.)
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also