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

MapPath

Class

Represents one or more closed geographic paths that can be filled and outlined as a map geometry.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

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

Inheritance: objectMapVisualElementMapPathBasedVisualElementMapGeometryMapPath

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.LocationMapVisualElement.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 MapPath class.

C#
public MapPath(Collection<Collection<PointG>> points)
Parameters:pointsCollection<Collection<PointG>>

The points of the path.

Fields

Stores one geographic bounding rectangle per component in Points.

C#
protected RectangleG[] allBoundingRectangles

Properties

Gets whether hit testing considers the filled path rather than only its outline.

C#
protected override bool IsOutline { get; }

Overrides: MapPathBasedVisualElement.IsOutline

Gets the points of the path.

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

The points.

Methods

Builds the closed graphics path for every component at 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 geographic points.

Returns:

MapVisualElementInfo

The projected path and its map-pixel offset.

Overrides: MapPathBasedVisualElement.CreateVisualElementInfo(IMapViewport)

Gets the geographic bounds of each component path.

C#
public override RectangleG[] GetGeographicBounds()
Returns:

RectangleG[]

One bounding rectangle for each collection in Points.

Overrides: MapVisualElement.GetGeographicBounds()

Fills and outlines each path component, repeating the geometry 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 paths.

viewportIMapViewport

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

Overrides: MapVisualElement.Paint(IGraphics, IMapViewport)