Skip to main content
A newer version of this page is available. .

MapShape Members

The class used to draw a shape on a map.

Constructors

Name Description
MapShape() Initializes a new instance of the MapShape class with default settings.

Fields

Name Description
FillProperty static Identifies the MapShape.Fill dependency property.
IsHitTestVisibleProperty static Identifies the MapItem.IsHitTestVisible dependency property. Inherited from MapItem.
StrokeProperty static Identifies the MapShape.Stroke dependency property.
StrokeStyleProperty static Identifies the MapShape.StrokeStyle dependency property.
ToolTipPatternProperty static Identifies the MapItem.ToolTipPattern dependency property. Inherited from MapItem.
VisibleProperty static Identifies the MapItem.Visible dependency property. Inherited from MapItem.

Properties

Name Description
Attributes Gets the attributes for this map item. Inherited from MapItem.
Fill Gets or sets the brush that specifies how the shape’s interior is painted.
IsHitTestVisible Gets or sets a value that defines whether or not a map item can be returned as a hit-testing result. Inherited from MapItem.
Layer Provides access to the map items layer object. Inherited from MapItem.
Stroke Gets or sets the Brush that specifies how the shape outline is painted.
StrokeStyle Gets or sets the settings of the shape outline.
ToolTipPattern Gets or sets a string which represents the pattern specifying the text to be displayed within a tooltip that appears for a map item. Inherited from MapItem.
Visible Gets or sets a value indicating whether or not a map item should be displayed. Inherited from MapItem.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
PropertyChanged Occurs every time any of the MapDependencyObject class properties has changed its value. Inherited from MapDependencyObject.
See Also