Export (0) Print
Expand All

Annotation.Height Property

Gets or sets the height of an annotation.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public virtual double Height { get; set; }

Property Value

Type: System.Double
A double value that represents the height of an annotation.

The height of an annotation can be a negative value, in which case the annotation orientation is switched.

Annotation height can be in relative chart coordinates or in axes coordinates. Chart relative coordinates are used by default.

To use axes coordinates, anchor an annotation to a data point using the AnchorDataPoint property, or set the annotation axes using the AxisX or AxisY properties and set the IsSizeAlwaysRelative property to false.

Set the height to NaN to achieve automatic size calculation for annotations with text. The size will automatically be calculated based on the annotation text and font size.

.NET Framework

Supported in: 4.5.3, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft