C# Класс Esri.ArcGISRuntime.Toolkit.Controls.ScaleLine

Наследование: Control
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ScaleProperty DependencyProperty
TargetWidthProperty DependencyProperty

Открытые методы

Метод Описание
OnApplyTemplate ( ) : void
ScaleLine ( ) : Esri.ArcGISRuntime.Geometry

Initializes a new instance of the ScaleLine class.

Защищенные методы

Метод Описание
OnApplyTemplate ( ) : void

Приватные методы

Метод Описание
GetFoot ( ) : double

1. (target_width_pixels / 96) = target_width_inches 2. target_width_inches * map_scale = map_scale_inches 3. map_scale_inches converted to feet = map_scale_feet

GetKilometer ( ) : double

1. (target_width_pixels / 96) = target_width_inches 2. target_width_inches * map_scale = map_scale_inches 3. map_scale_inches converted to kilometers = map_scale_kilometers

GetMeter ( ) : double

1. (target_width_pixels / 96) = target_width_inches 2. target_width_inches * map_scale = map_scale_inches 3. map_scale_inches converted to meters = map_scale_meters

GetMile ( ) : double

1. (target_width_pixels / 96) = target_width_inches 2. target_width_inches * map_scale = map_scale_inches 3. map_scale_inches converted to miles = map_scale_miles

GetRoundedValue ( double value ) : double
OnScalePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

The property changed event that is raised when the value of Scale property changes.

OnTargetWidthPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

The property changed event that is raised when the value of TargetWidth property changes.

Refresh ( ) : void

Refreshes the scaleline when the map extent changes.

SetMetricUnit ( double value, string unit ) : void

Sets the metric units section of the scale line

SetUsUnit ( double value, string unit ) : void

Sets the imperial units section of the scale line

Описание методов

OnApplyTemplate() защищенный публичный Метод

protected public OnApplyTemplate ( ) : void
Результат void

ScaleLine() публичный Метод

Initializes a new instance of the ScaleLine class.
public ScaleLine ( ) : Esri.ArcGISRuntime.Geometry
Результат Esri.ArcGISRuntime.Geometry

Описание свойств

ScaleProperty публичное статическое свойство

The dependency property for the Scale property.
public static DependencyProperty ScaleProperty
Результат DependencyProperty

TargetWidthProperty публичное статическое свойство

The dependency property for the TargetWidth property.
public static DependencyProperty TargetWidthProperty
Результат DependencyProperty