New to Telerik UI for WPFStart a free 30-day trial

MapLine

Class

Represents line given in the geographical coordinates.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class MapLine : MapShape, IExtendedData, IColorable, IGeoSizeProvider

Inheritance: objectMapShapeMapLine

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

Initializes a new instance of the MapLine class.

C#
public MapLine()

Fields

Point1Property

DependencyProperty

Identifies the Point1 dependency property.

C#
public static readonly DependencyProperty Point1Property

Point2Property

DependencyProperty

Identifies the Point2 dependency property.

C#
public static readonly DependencyProperty Point2Property

Properties

Gets or sets the start point of the line.

C#
public Location Point1 { get; set; }

Gets or sets the end point of the line.

C#
public Location Point2 { get; set; }

Gets bounding rectangle given in pixels.

C#
public override Rect ScreenBounds { get; }

Overrides: MapShape.ScreenBounds

Methods

Change location of the line so Point1 coincide with new location.

C#
public override void MoveTo(Location location)
Parameters:locationLocation

New location.

Overrides: MapShape.MoveTo(Location)

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

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Prepare shape.

C#
protected override Size PrepareShape()
Returns:

Size

Overrides: MapShape.PrepareShape()