New to Telerik UI for WinForms? Start a free 30-day trial

Represents an open line formed by connecting geographic points in their supplied order.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public class MapPolyline : MapGeometry, IClusterable, IBorderElement, IBoxStyle, IBoxElement, IFillElement, ITextElement, IShapedElement, IExtendedData, IColorizable

Inheritance: objectMapVisualElementMapPathBasedVisualElementMapGeometryMapPolyline

Implements: IBorderElementIBoxElementIBoxStyleIClusterableIColorizableIExtendedDataIFillElementIShapedElementITextElement...

Inherited Members MapGeometry.OnExtendedDataPropertyChanged(object, PropertyChangedEventArgs)MapGeometry.ResolveEntityReferences()MapGeometry.TextMapGeometry.DrawTextMapGeometry.ColorizerColorMapGeometry.ExtendedDataMapGeometry.BackColorMapGeometry.BackColor2MapGeometry.BackColor3MapGeometry.BackColor4MapPathBasedVisualElement.ViewportChanged(IMapViewport, ViewportChangeAction)MapPathBasedVisualElement.HitTest(PointG, PointL, IMapViewport)MapPathBasedVisualElement.GetVisualElementInfo(IMapViewport)MapPathBasedVisualElement.ResetGraphicsPathCache()MapPathBasedVisualElement.IsInViewportMapPathBasedVisualElement.IsOutlineMapPathBasedVisualElement.LocationMapVisualElement.GetGeographicBounds()MapVisualElement.GetCurrentShape()MapVisualElement.GeographicBoundsMapVisualElement.LayerMapVisualElement.IsVisibleMapVisualElement.IsSelectedMapVisualElement.TagMapVisualElement.NumberOfColorsMapVisualElement.GradientAngleMapVisualElement.GradientPercentageMapVisualElement.GradientPercentage2MapVisualElement.GradientStyleMapVisualElement.SizeMapVisualElement.SmoothingModeMapVisualElement.BorderColorMapVisualElement.BorderColor2MapVisualElement.BorderColor3MapVisualElement.BorderColor4MapVisualElement.InnerColorMapVisualElement.InnerColor2MapVisualElement.InnerColor3MapVisualElement.InnerColor4MapVisualElement.BoxStyleMapVisualElement.BorderDrawModeMapVisualElement.BorderDashStyleMapVisualElement.BorderDashPatternMapVisualElement.LeftColorMapVisualElement.LeftShadowColorMapVisualElement.TopColorMapVisualElement.TopShadowColorMapVisualElement.RightColorMapVisualElement.RightShadowColorMapVisualElement.BottomColorMapVisualElement.BottomShadowColorMapVisualElement.BorderWidthMapVisualElement.LeftWidthMapVisualElement.TopWidthMapVisualElement.RightWidthMapVisualElement.BottomWidthMapVisualElement.OffsetMapVisualElement.BorderSizeMapVisualElement.HorizontalWidthMapVisualElement.VerticalWidthMapVisualElement.ForeColorMapVisualElement.FontMapVisualElement.ToolTipTextMapVisualElement.RawResourceMapVisualElement.Shape...

Constructors

Initializes a new instance of the MapPolyline class.

C#
public MapPolyline(IEnumerable<PointG> points)
Parameters:pointsIEnumerable<PointG>

The points.

Creates a polyline from a variable-length list of geographic points.

C#
public MapPolyline(params PointG[] points)
Parameters:pointsPointG[]

The ordered points that define the line.

Properties

Points

IEnumerable<PointG>

Gets the points of the polyline.

C#
public IEnumerable<PointG> Points { get; }
Property Value:

The points.

Methods

Projects the ordered points into a graphics path for the viewport's current zoom level.

C#
protected override MapVisualElementInfo CreateVisualElementInfo(IMapViewport viewport)
Parameters:viewportIMapViewport

The viewport whose zoom level is used to project the points.

Returns:

MapVisualElementInfo

The projected line path and its map-pixel offset.

Overrides: MapPathBasedVisualElement.CreateVisualElementInfo(IMapViewport)

Draws the polyline outline, repeating it for the viewport's horizontal wraparound copies.

C#
public override void Paint(IGraphics graphics, IMapViewport viewport)
Parameters:graphicsIGraphics

The graphics context used to draw the line.

viewportIMapViewport

The viewport that supplies map projection, pan, zoom, and wraparound state.

Overrides: MapVisualElement.Paint(IGraphics, IMapViewport)