MapPolyline
MapPolyline
MapPolyline
MapPolyline
Class
Definition
Represents a polyline on a MapControl.
public : sealed class MapPolyline : MapElement, IMapPolylinepublic sealed class MapPolyline : MapElement, IMapPolylinePublic NotInheritable Class MapPolyline Inherits MapElement Implements IMapPolyline// This API is not available in Javascript.
- Inheritance
-
MapPolylineMapPolylineMapPolylineMapPolyline
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
Inherited properties
Remarks
Display pushpins, images, and shapes on the MapControl by adding them to its MapElements collection.
- Display an image such as a pushpin with optional text by using the MapIcon class. Keep the default image or provide a custom image.
- Define and display a MapPolygon or a MapPolyline. Alternately, to display XAML elements on the MapControl, add them to its Children collection.
For more info, see Display maps with 2D, 3D, and Streetside views.
Constructors
MapPolyline() MapPolyline() MapPolyline() MapPolyline()
Initializes a new instance of the MapPolyline class.
public : MapPolyline()public MapPolyline()Public Sub New()// This API is not available in Javascript.
- See Also
Properties
Path Path Path Path
Gets or sets the collection of coordinates that define the MapPolyline shape.
public : Geopath Path { get; set; }public Geopath Path { get; set; }Public ReadWrite Property Path As Geopath// This API is not available in Javascript.
The collection of coordinates that define the MapPolyline shape.
- See Also
PathProperty PathProperty PathProperty PathProperty
Identifies the Path dependency property.
public : static DependencyProperty PathProperty { get; }public static DependencyProperty PathProperty { get; }Public Static ReadOnly Property PathProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the Path dependency property.
- See Also
StrokeColor StrokeColor StrokeColor StrokeColor
Gets or sets the color used to draw the MapPolyline.
public : Color StrokeColor { get; set; }public Color StrokeColor { get; set; }Public ReadWrite Property StrokeColor As Color// This API is not available in Javascript.
The color to be used to draw the MapPolyline.
- See Also
StrokeDashed StrokeDashed StrokeDashed StrokeDashed
Gets or sets a value that indicates whether the line used to draw the MapPolyline is dashed.
public : PlatForm::Boolean StrokeDashed { get; set; }public bool StrokeDashed { get; set; }Public ReadWrite Property StrokeDashed As bool// This API is not available in Javascript.
- Value
- PlatForm::Boolean bool bool bool
true if the line used for drawing the MapPolyline is dashed; otherwise, false.
- See Also
StrokeDashedProperty StrokeDashedProperty StrokeDashedProperty StrokeDashedProperty
Identifies the StrokeDashed dependency property.
public : static DependencyProperty StrokeDashedProperty { get; }public static DependencyProperty StrokeDashedProperty { get; }Public Static ReadOnly Property StrokeDashedProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the StrokeDashed dependency property.
- See Also
StrokeThickness StrokeThickness StrokeThickness StrokeThickness
Gets or sets the width of the line used to draw the MapPolyline, in logical pixels.
public : double StrokeThickness { get; set; }public double StrokeThickness { get; set; }Public ReadWrite Property StrokeThickness As double// This API is not available in Javascript.
- Value
- double double double double
The width of the line used to draw the MapPolyline, in logical pixels.
- See Also