Class
MapRectangle

Represents rectangle given in the geographical coordinates. Width and Height properties sets size of the rectangle in the current maps distance unit (miles or kilometers). The RadiusX and RadiusY properties are set in miles or kilometers as well.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public class MapRectangle : MapShape, IExtendedData, IColorable, IGeoSizeProvider

Inheritance: objectMapShapeMapRectangle

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

MapRectangle()

Initializes a new instance of the MapRectangle class.

Declaration

cs-api-definition
public MapRectangle()

Fields

DegreeHeightProperty

Identifies the DegreeHeight dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DegreeHeightProperty

Field Value

DependencyProperty

DegreeWidthProperty

Identifies the DegreeWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DegreeWidthProperty

Field Value

DependencyProperty

HeightListenerProperty

Listener for the Height property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeightListenerProperty

Field Value

DependencyProperty

RadiusXProperty

Identifies the RadiusXProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RadiusXProperty

Field Value

DependencyProperty

RadiusYProperty

Identifies the RadiusYProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RadiusYProperty

Field Value

DependencyProperty

WidthListenerProperty

Listener for the Width property.

Declaration

cs-api-definition
public static readonly DependencyProperty WidthListenerProperty

Field Value

DependencyProperty

Properties

DegreeHeight

Gets or sets height of the rectangle in degrees. This is a dependency property.

Declaration

cs-api-definition
public double DegreeHeight { get; set; }

Property Value

double

DegreeWidth

Gets or sets width of the rectangle in degrees. This is a dependency property.

Declaration

cs-api-definition
public double DegreeWidth { get; set; }

Property Value

double

Location

Get or sets Left-Top corner of the rectangle.

Declaration

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

Property Value

Location

RadiusX

Gets or sets the x-axis radius of the ellipse that is used to round the corners of the rectangle. This is a dependency property.

Declaration

cs-api-definition
public double RadiusX { get; set; }

Property Value

double

RadiusY

Gets or sets the y-axis radius of the ellipse that is used to round the corners of the rectangle. This is a dependency property.

Declaration

cs-api-definition
public double RadiusY { get; set; }

Property Value

double

ScreenBounds

Gets bounding rectangle given in pixels.

Declaration

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

Property Value

Rect

Overrides MapShape.ScreenBounds

Methods

MoveTo(Location)

Change location of the shape.

Declaration

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

Parameters

location

Location

New location.

Overrides MapShape.MoveTo(Location)

PrepareShape()

Prepare shape.

Declaration

cs-api-definition
protected override Size PrepareShape()

Returns

Size

Overrides MapShape.PrepareShape()