Annotation.Height Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the height of an annotation.
public:
virtual property double Height { double get(); void set(double value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.DoubleNanValueConverter))]
public virtual double Height { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.DoubleNanValueConverter))>]
member this.Height : double with get, set
Public Overridable Property Height As Double
Property Value
A double
value that represents the height of an annotation.
- Attributes
Remarks
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.