Search
Shape Members
Constructors Fields Properties Methods
 


Represents geometrical shapes displayed on a map.

The following tables list the members exposed by the Shape type.

 Protected Constructors

  Name Description

Shape

Initializes a new instance of the Shape class.

 Public Fields

  Name Description

Id

The record number of this shape in the ESRI map file.

 Public Properties

  Name Description

Color

Gets or sets the index of the shape's color within the current color palette.

DatabaseRow

Gets the DBF database row associated with this Shape.

HitTestDistance

Gets or set the current hit test threshold distance.

IsStreetShape

Gets or sets whether this object represents an OpenStreetMap shape.

Label

Gets or sets the label of this map element. (Inherited from MapElement.)

PenKey

Gets or sets a key used to associate a pen with this shape's map feature.

Size

Gets the shape's area.

Type

Gets the ESRI shape type of this Shape.

ZIndex

Gets or sets the shape's Z order index.

 Public Methods

  Name Description

GetBoundingBox

Gets the bounding box of this shape.

GetCenter

Gets the center point of this shape.

GetPoints

Returns the vertex points of this shape.

SaveTo

Saves this shape to the specified stream.

 Protected Methods

  Name Description

ClearCache

Clears any cached values associated with the shape for the current zoom level.

Draw

Draws this map element on the specified drawing surface. (Inherited from MapElement.)

DrawLabel

Draws the label of this map element. (Inherited from MapElement.)

Highlight

Draws a highlight of this map element. (Inherited from MapElement.)

HitTest

Tests whether this map element contains the specified point. (Inherited from MapElement.)

 See Also