ArcGIS API for WPF - Library Reference
BarHeight Property
See Also  Example Send comments on this topic
ESRI.ArcGIS.Client Namespace > ScaleBar Class : BarHeight Property

Note: This API is now obsolete. Please use the ScaleLine control in the ESRI.ArcGIS.Client.Toolkit namespace.

Gets or sets the height of the ScaleBar Control.

Syntax

Visual Basic (Declaration) 
Public Property BarHeight As Double
C# 
public double BarHeight {get; set;}

Example

XAMLCopy Code
<esri:ScaleBar Name="ScaleBar1" Map="{Binding ElementName=Map1}" BarHeight="50" />
C#Copy Code
//The ScaleBar Control (named ScaleBar1) was define previously in the code...
ScaleBar1.BarHeight = 50;
VB.NETCopy Code
'The ScaleBar Control (named ScaleBar1) was define previously in the code...
ScaleBar1.BarHeight = 50

Remarks

The BarHeight of the ScaleBar Control is the total height of the graphic bars in the Control; not one of the single individual alternating sub-bars.

Example of the Scalebar BarHeight.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.