Class MapScaleIndicatorElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public class MapScaleIndicatorElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
MapScaleIndicatorElement(RadMapElement)
Initializes a new instance of the MapScaleIndicatorElement class.
Declaration
public MapScaleIndicatorElement(RadMapElement mapElement)
Parameters
RadMapElement
mapElement
The map element. |
Properties
BarHeight
Gets or sets the height of the bar.
Declaration
public int BarHeight { get; set; }
Property Value
System.Int32
The height of the bar. |
FeetText
Gets or sets the text displayed for feet.
Declaration
public string FeetText { get; set; }
Property Value
System.String
|
ImperialBarColor
Gets or sets the color of the imperial bar.
Declaration
public Color ImperialBarColor { get; set; }
Property Value
System.Drawing.Color
The color of the imperial bar. |
KilometersText
Gets or sets the text displayed for kilometers.
Declaration
public string KilometersText { get; set; }
Property Value
System.String
|
MapElement
Gets the map element.
Declaration
public RadMapElement MapElement { get; }
Property Value
RadMapElement
The map element. |
MetersText
Gets or sets the text displayed for meters.
Declaration
public string MetersText { get; set; }
Property Value
System.String
|
MetricBarColor
Gets or sets the color of the metric bar.
Declaration
public Color MetricBarColor { get; set; }
Property Value
System.Drawing.Color
The color of the metric bar. |
MilesText
Gets or sets the text displayed for miles.
Declaration
public string MilesText { get; set; }
Property Value
System.String
|
Methods
CalculateDistanceAndText()
Calculates the distance and text to be displayed in the indicator.
Declaration
protected virtual MapScaleIndicatorElement.SizeAndText CalculateDistanceAndText()
Returns
MapScaleIndicatorElement.SizeAndText
SizeAndText. |
CalculateDistanceAndTextInKilometersAndMiles(Int32)
Calculates the distance and text to be displayed in the indicator in kilometers and miles.
Declaration
protected virtual MapScaleIndicatorElement.SizeAndText CalculateDistanceAndTextInKilometersAndMiles(int maxPixels)
Parameters
System.Int32
maxPixels
The maximum width in pixels. |
Returns
MapScaleIndicatorElement.SizeAndText
SizeAndText. |
CalculateDistanceAndTextInMetersAndFeet(Int32)
Calculates the distance and text to be displayed in the indicator in meters and feet.
Declaration
protected virtual MapScaleIndicatorElement.SizeAndText CalculateDistanceAndTextInMetersAndFeet(int maxPixels)
Parameters
System.Int32
maxPixels
The maximum width in pixels. |
Returns
MapScaleIndicatorElement.SizeAndText
SizeAndText. |
GetDisplayScaleDistance(Double)
Gets an appropriate display scale distance.
Declaration
protected virtual int GetDisplayScaleDistance(double distance)
Parameters
System.Double
distance
The distance. |
Returns
System.Int32
System.Int32. |
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
PaintElement(IGraphics, Single, SizeF)
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|