Class
MapPolyline

Represents series of connected straight lines given in the geographical coordinates.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Polyline")]
public class MapPolyline : MapShape, IExtendedData, IColorable, IGeoSizeProvider

Inheritance: objectMapShapeMapPolyline

Derived Classes: MapPolygon

Implements: IColorableIExtendedDataIGeoSizeProvider

Inherited Members MapShape.CaptionLocationPropertyMapShape.CaptionTemplatePropertyMapShape.FillPropertyMapShape.HighlightFillPropertyMapShape.ShapeFillPropertyMapShape.StrokeDashArrayPropertyMapShape.StrokeDashCapPropertyMapShape.StrokeDashOffsetPropertyMapShape.StrokeEndLineCapPropertyMapShape.StrokeLineJoinPropertyMapShape.StrokeMiterLimitPropertyMapShape.StrokePropertyMapShape.StrokeStartLineCapPropertyMapShape.StrokeThicknessPropertyMapShape.VisibilityListenerPropertyMapShape.CaptureMouse()MapShape.RaiseEvent(RoutedEventArgs)MapShape.ReleaseMouseCapture()MapShape.UseHighlightFill()MapShape.UseRegularFill()MapShape.OnMapCanvasChanged(MapCanvas, MapCanvas)MapShape.OnMapControlChanged(RadMap, RadMap)MapShape.PreprocessTransformation()MapShape.SetShapeFillStroke()MapShape.SetupEvents()MapShape.CaptionLocationMapShape.CaptionTemplateMapShape.ExtendedDataMapShape.FillMapShape.GeoBoundsMapShape.GeographicalBoundsMapShape.GeoSizeMapShape.HighlightFillMapShape.ShapeFillMapShape.StrokeMapShape.StrokeDashArrayMapShape.StrokeDashCapMapShape.StrokeDashOffsetMapShape.StrokeEndLineCapMapShape.StrokeLineJoinMapShape.StrokeMiterLimitMapShape.StrokeStartLineCapMapShape.StrokeThicknessMapShape.NeedUpdateLocationMapShape.MouseEnterMapShape.MouseLeaveMapShape.MouseLeftButtonDownMapShape.MouseLeftButtonUpMapShape.MouseMoveMapShape.MouseRightButtonDownMapShape.MouseRightButtonUpMapShape.MouseWheel

Constructors

MapPolyline()

Initializes a new instance of the MapPolyline class.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public MapPolyline()

Fields

FillRuleProperty

Identifies the FillRule dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FillRuleProperty

Field Value

DependencyProperty

PointsProperty

Identifies the Points dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PointsProperty

Field Value

DependencyProperty

Properties

FillRule

Gets or sets a FillRule enumeration that specifies how the interior fill of the shape is determined. This is a dependency property.

Declaration

cs-api-definition
public FillRule FillRule { get; set; }

Property Value

FillRule

Points

Gets or sets a collection that contains the vertex points of the Polyline. This is a dependency property.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public LocationCollection Points { get; set; }

Property Value

LocationCollection

ScreenBounds

Gets bounding rectangle given in pixels.

Declaration

cs-api-definition
public override Rect ScreenBounds { get; }

Property Value

Rect

Overrides MapShape.ScreenBounds

Methods

CreateShape()

Creates the shape.

Declaration

cs-api-definition
protected virtual void CreateShape()

MoveTo(Location)

Change all locations in Points collection so the first point coincide with new location.

Declaration

cs-api-definition
public override void MoveTo(Location location)

Parameters

location

Location

New location.

Overrides MapShape.MoveTo(Location)

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnPointsChanged()

This method is called when points collection is changed.

Declaration

cs-api-definition
protected virtual void OnPointsChanged()

PrepareShape()

Prepare shape.

Declaration

cs-api-definition
protected override Size PrepareShape()

Returns

Size

Overrides MapShape.PrepareShape()