Annotation Classe

Definição

Define as propriedades e os métodos comuns a todas as anotações.Defines properties and methods common to all annotations. Esta é uma classe abstrata.This is an abstract class.

public ref class Annotation abstract : System::Web::UI::DataVisualization::Charting::ChartNamedElement, System::Web::UI::DataVisualization::Charting::IChartMapArea
public abstract class Annotation : System.Web.UI.DataVisualization.Charting.ChartNamedElement, System.Web.UI.DataVisualization.Charting.IChartMapArea
type Annotation = class
    inherit ChartNamedElement
    interface IChartMapArea
Public MustInherit Class Annotation
Inherits ChartNamedElement
Implements IChartMapArea
Herança
Derivado
Implementações

Comentários

As anotações são normalmente usadas para comentar ou elaborar elementos de gráfico, como pontos de dados.Annotations are commonly used to comment or elaborate on chart elements such as data points. As anotações também podem ser usadas para desenhar formas personalizadas.Annotations can also be used to draw custom shapes.

Por padrão, as anotações são posicionadas usando coordenadas relativas, com (0, 0) representando o canto superior esquerdo e (100.100) que representa o canto inferior direito da imagem do gráfico.By default, annotations are positioned using relative coordinates, with (0,0) representing the top-left corner, and (100,100) representing the bottom-right corner of the chart image. Também é possível alternar desse sistema de coordenadas relativo para um sistema que usa valores de eixo.It is also possible to switch from this relative coordinate system to a system that uses axis values. Com um sistema de coordenadas de eixo, X e Y, que representa a posição do canto superior esquerdo de uma anotação, são definidos usando valores de eixo X e eixo Y, em vez de valores que variam de 0-100.With an axis coordinate system, X and Y, which represent the position of the top-left corner of an annotation, are set using X axis and Y axis values, instead of values that range from 0-100.

Há duas maneiras de usar valores de eixo quando você especifica a posição e o tamanho de uma anotação:There are two ways to use axis values when you specify the position and size of an annotation:

  • Defina AxisX AxisY ou ambas as propriedades de anotação para os AxisX AxisY valores de propriedade e de um ChartArea objeto.Set the AxisX, AxisY or both of these annotation properties to the AxisX and AxisY property values of a ChartArea object.

  • Use a AnchorDataPoint propriedade para ancorar a anotação a um ponto de dados.Use the AnchorDataPoint property to anchor the annotation to a data point. Nesse caso, seu posicionamento é calculado automaticamente.In this case, its positioning is automatically calculated.

Todas as anotações são derivadas da Annotation classe, que pode ser usada para definir atributos comuns a todos os Annotation objetos, como cor, posição, ancoragem e assim por diante.All annotations are derived from the Annotation class, which can be used to set attributes common to all Annotation objects, such as color, position, anchoring and so forth.

Construtores

Annotation()

Inicializa uma nova instância da classe Annotation.Initializes a new instance of the Annotation class. Esse é o construtor sem parâmetros e ele não deve ser usado.This is the parameterless constructor and should not be used.

Propriedades

Alignment

Obtém ou define o alinhamento do conteúdo de uma anotação.Gets or sets the content alignment of an annotation.

AnchorAlignment

Obtém ou define o alinhamento da posição de uma anotação para o ponto de ancoragem.Gets or sets the position alignment of an annotation to the anchor point.

AnchorDataPoint

Obtém ou define o ponto de dados ao qual uma anotação está ancorada.Gets or sets the data point to which an annotation is anchored.

AnchorDataPointName

Obtém ou define o nome de um ponto de dados ao qual uma anotação está ancorada.Gets or sets the name of a data point to which an annotation is anchored.

AnchorOffsetX

Obtém ou define o deslocamento do ponto de ancoragem para a posição X de uma anotação.Gets or sets the offset from the anchor point for the X position of an annotation.

AnchorOffsetY

Obtém ou define o deslocamento do ponto de ancoragem para a posição Y de uma anotação.Gets or sets the offset from the anchor point for the Y position of an annotation.

AnchorX

Obtém ou define a coordenada X à qual a anotação está ancorada.Gets or sets the X coordinate to which the annotation is anchored.

AnchorY

Obtém ou define a coordenada Y à qual a anotação está ancorada.Gets or sets the Y coordinate to which the annotation is anchored.

AnnotationGroup

Obtém o grupo, se houver, ao qual a anotação pertence.Gets the group, if any, in which the annotation belongs to.

AnnotationType

Obtém ou define o nome de tipo de uma anotação.Gets or sets the type name of an annotation.

AxisX

Obtém ou define o eixo X ao qual uma anotação está anexada.Gets or sets the X axis to which an annotation is attached.

AxisXName

Obtém ou define o nome do eixo X ao qual uma anotação está anexada.Gets or sets the name of the X axis which an annotation is attached to.

AxisY

Obtém ou define o eixo Y ao qual uma anotação está anexada.Gets or sets the Y axis which an annotation is attached to.

AxisYName

Obtém ou define o nome do eixo Y ao qual uma anotação está anexada.Gets or sets the name of the Y axis which an annotation is attached to.

BackColor

Obtém ou define a cor da tela de fundo de uma anotação.Gets or sets the color of an annotation background.

BackGradientStyle

Obtém ou define o estilo de gradiente da tela de fundo de uma anotação.Gets or sets the gradient style of an annotation background.

BackHatchStyle

Obtém ou define o estilo de hachura da tela de fundo de uma anotação.Gets or sets the hatching style of an annotation background.

BackSecondaryColor

Obtém ou define a cor secundária da tela de fundo da anotação.Gets or sets the secondary color of an annotation background.

Bottom

Obtém ou define o limite inferior da posição de uma anotação.Gets or sets the bottom boundary of an annotation position.

ClipToChartArea

Obtém ou define o nome da área do gráfico à qual a anotação é afixada.Gets or sets the name of the chart area to which an annotation is clipped.

Font

Obtém ou define a fonte a ser usada para o texto de uma anotação.Gets or sets the font to use for the text of an annotation.

ForeColor

Obtém ou define a cor do texto de uma anotação.Gets or sets the text color of an annotation.

Height

Obtém ou define a altura de uma anotação.Gets or sets the height of an annotation.

IsSelected

Obtém ou define um sinalizador que determina se uma anotação está selecionada.Gets or sets a flag that determines if an annotation is selected.

IsSizeAlwaysRelative

Obtém ou define um sinalizador que especifica se o tamanho de uma anotação sempre é definido em coordenadas relativas do gráfico.Gets or sets a flag that specifies whether the size of an annotation is always defined in relative chart coordinates.

LineColor

Obtém ou define a cor da linha de uma anotação.Gets or sets the line color of an annotation.

LineDashStyle

Obtém ou define o estilo da linha de uma anotação.Gets or sets the line style of an annotation.

LineWidth

Obtém ou define a largura da linha de uma anotação.Gets or sets the line width of an annotation.

MapAreaAttributes

Obtém ou define os atributos da área do mapa de uma anotação.Gets or sets the map area attributes of an annotation.

Name

Obtém ou define o nome exclusivo de uma anotação.Gets or sets the unique name of an annotation.

PostBackValue

Obtém ou define o valor de postback que pode ser processado no evento Click.Gets or sets the postback value which can be processed on the Click event.

Right

Obtém ou define a posição de limite direito de uma anotação.Gets or sets the right boundary position of an annotation.

ShadowColor

Obtém ou define a cor da sombra da anotação.Gets or sets the color of an annotation's shadow.

ShadowOffset

Obtém ou define o tamanho da sombra da anotação.Gets or sets the size of an annotation's shadow.

SmartLabelStyle

Obtém ou define o estilo de rótulo inteligente de uma anotação.Gets or sets the smart label style of an annotation.

Tag

Obtém ou define um objeto associado a esse elemento do gráfico.Gets or sets an object associated with this chart element.

(Herdado de ChartElement)
TextStyle

Obtém ou define o estilo de texto de uma anotação.Gets or sets the text style of an annotation.

ToolTip

Obtém ou define o texto da dica de ferramenta de uma anotação.Gets or sets the tooltip text for an annotation.

Url

Obtém ou define a URL de uma anotação.Gets or sets the URL of an annotation.

Visible

Obtém ou define um sinalizador que especifica se uma anotação está visível.Gets or sets a flag that specifies whether an annotation is visible.

Width

Obtém ou define a largura, em pixels, de uma anotação.Gets or sets the width, in pixels, of an annotation.

X

Obtém ou define a coordenada X de uma anotação.Gets or sets the X coordinate of an annotation.

Y

Obtém ou define a coordenada Y de uma anotação.Gets or sets the Y coordinate of the annotation.

YAxisName

Obtém ou define o nome do eixo Y ao qual uma anotação está anexada.Gets or sets the name of the Y axis which an annotation is attached to.

Métodos

BringToFront()

Traz uma anotação para a frente de todas as anotações.Brings an annotation to the front of all annotations.

Dispose()

Libera os recursos usados pelo ChartElement.Releases the resources used by the ChartElement.

(Herdado de ChartElement)
Dispose(Boolean)

Libera os recursos não gerenciados e, opcionalmente, os recursos gerenciados.Releases unmanaged resources and, optionally, managed resources.

Equals(Object)

Determina se o Object especificado é igual ao ChartElement atual.Determines whether the specified Object is equal to the current ChartElement.

(Herdado de ChartElement)
GetHashCode()

Retorna uma função de hash para um tipo específico.Returns a hash function for a particular type.

(Herdado de ChartElement)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ResizeToContent()

Redimensiona uma anotação de acordo com seu tamanho de conteúdo.Resizes an annotation according to its content size.

SendToBack()

Envia uma anotação para trás de todas as anotações.Sends an annotation to the back of all the annotations.

SetAnchor(DataPoint)

Ancora uma anotação ao ponto de dados especificado.Anchors an annotation to the specified data point.

SetAnchor(DataPoint, DataPoint)

Ancora uma anotação a dois pontos de dados.Anchors an annotation to two data points.

ToString()

Retorna uma cadeia de caracteres que representa o Object atual.Returns a string that represents the current Object.

(Herdado de ChartElement)

Aplica-se a