Annotation.Height Propriedade
Definição
Obtém ou define a altura de uma anotação.Gets or sets the height of an annotation.
public:
virtual property double Height { double get(); void set(double value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DoubleNanValueConverter))]
public virtual double Height { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DoubleNanValueConverter))>]
member this.Height : double with get, set
Public Overridable Property Height As Double
Valor da propriedade
Um double valor que representa a altura de uma anotação.A double value that represents the height of an annotation.
- Atributos
Comentários
A altura de uma anotação pode ser um valor negativo; nesse caso, a orientação da anotação é alternada.The height of an annotation can be a negative value, in which case the annotation orientation is switched.
A largura da anotação pode estar em coordenadas de gráfico relativas ou em coordenadas de eixos.Annotation width can be in relative chart coordinates or in axes coordinates. As coordenadas relativas ao gráfico são usadas por padrão.Chart relative coordinates are used by default.
Para usar coordenadas de eixos, ancorar uma anotação a um ponto de dados usando a AnchorDataPoint propriedade ou definir os eixos de anotação usando as AxisX AxisY Propriedades ou e definir a IsSizeAlwaysRelative propriedade como false .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.
Defina a largura como NaN para obter o cálculo de tamanho automático para anotações com texto.Set the width to NaN to achieve automatic size calculation for annotations with text. O tamanho será calculado automaticamente com base no texto da anotação e no tamanho da fonte.The size will automatically be calculated based on the annotation text and font size.