Show / Hide Table of Contents

Class ScaleLine

The ScaleLine Control generates a line representing a certain distance on the map in both Metric and US units.

Inheritance
object
DependencyObject
UIElement
FrameworkElement
Control
ScaleLine
Implements
IEquatable<DependencyObject>
IAnimationObject
IVisualElement
IVisualElement2
IEquatable<UIElement>
IEquatable<FrameworkElement>
IWinRTObject
IUnmanagedVirtualMethodTableProvider
IDynamicInterfaceCastable
IEquatable<Control>
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(Esri_ArcGISRuntime_Toolkit_UI_Controls_CompassWinRTTypeDetails))]
public class ScaleLine : Control, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<Control>

Constructors

Name Description
ScaleLine()

Initializes a new instance of the ScaleLine class.

Fields

Name Description
MapScaleProperty

The dependency property for the Scale property.

MapViewProperty

Identifies the GeoView Dependency Property.

TargetWidthProperty

Identifies the dependency property for the TargetWidth property.

Properties

Name Description
MapScale
MapView

Gets or sets the MapView property that can be attached to a Scaleline control to accurately set the scale, instead of setting the MapScale property directly.

TargetWidth

Gets or sets the width that will be used to calculate the length of the ScaleLine.

Methods

Name Description
CalculateScale(Polygon?, double)

Calculates the scale at the center of a polygon, at a given pixel size.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

In this article
Back to top Generated by DocFX