CustomLabel Classe

Definição

Representa um rótulo personalizado para um eixo.Represents a custom label for an axis.

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

Comentários

CustomLabel os objetos são armazenados na CustomLabelsCollection classe, que é exposta como a CustomLabels propriedade da Axis classe.CustomLabel objects are stored in the CustomLabelsCollection class, which is exposed as the CustomLabels property of the Axis class.

Os rótulos de eixo da primeira linha de rótulo são gerados automaticamente, a menos que sejam especificados rótulos personalizados usando a CustomLabels propriedade.Axis labels for the first label row are automatically generated unless custom labels are specified using the CustomLabels property. Se você especificar um rótulo personalizado ao longo da primeira linha de rótulo, nenhum rótulo de eixo será gerado automaticamente para toda a primeira linha.If you specify a custom label along the first label row, no axis labels will be automatically generated for the entire first row.

Somente rótulos personalizados podem ser usados para a segunda linha de rótulo.Only custom labels may be used for the second label row.

As ToPosition FromPosition Propriedades e determinam o intervalo de eixo ao qual o rótulo se aplica.The ToPosition and FromPosition properties determine the axis range that the label applies to.

Uma linha de grade e/ou marca de escala pode ser exibida para um rótulo de eixo personalizado usando a GridTicks Propriedade; essa propriedade especifica se uma linha de grade ou marca de escala personalizada será desenhada no meio do intervalo de rótulos.A grid line and/or tick mark can be displayed for a custom axis label by using the GridTicks property; this property specifies whether a custom grid line or tick mark will be drawn in the middle of the label range.

Construtores

CustomLabel()

Cria uma nova instância da classe CustomLabel.Creates a new instance of the CustomLabel class.

CustomLabel(Double, Double, String, Int32, LabelMarkStyle)

Inicializa uma nova instância da classe CustomLabel com os parâmetros fromPosition, toPosition, text, labelRow e markStyle especificados.Initializes a new instance of the CustomLabel class with the specified fromPosition, toPosition, text, labelRow, and markStyle parameters.

CustomLabel(Double, Double, String, Int32, LabelMarkStyle, GridTickTypes)

Inicializa uma nova instância da classe CustomLabel com os parâmetros fromPosition, toPosition, text, labelRow, markStyle e gridTick especificados.Initializes a new instance of the CustomLabel class with the specified fromPosition, toPosition, text, labelRow, markStyle and gridTick parameters.

Propriedades

Axis

Obtém o eixo ao qual este objeto CustomLabel pertence.Gets the axis that this CustomLabel object belongs to.

ForeColor

Obtém ou define a cor do texto do rótulo personalizado.Gets or sets the text color of the custom label.

FromPosition

Obtém ou define a posição inicial, em coordenadas do eixo, do rótulo personalizado.Gets or sets the beginning position, in axis coordinates, of the custom label.

GridTicks

Obtém ou define uma propriedade que especifica se as marcas de escala personalizadas e as linhas de grade serão desenhadas no centro do rótulo.Gets or sets a property that specifies whether custom tick marks and grid lines will be drawn in the center of the label.

Image

Obtém ou define a imagem do rótulo personalizado.Gets or sets the custom label image.

ImageMapAreaAttributes

Obtém ou define uma cadeia de caracteres que representa os atributos de área de uma imagem de rótulo personalizada.Gets or sets a string that represents the area attributes of a custom label image.

ImagePostBackValue

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

ImageTransparentColor

Obtém ou define uma cor que será substituída por uma cor transparente quando uma imagem do rótulo personalizado for desenhada.Gets or sets a color that will be replaced with a transparent color when a custom label image is drawn.

ImageUrl

Obtém ou define a URL de destino da imagem do rótulo.Gets or sets the URL target of the label image.

LabelMark

Obtém ou define a marca de rótulo para um rótulo personalizado.Gets or sets the label mark for a custom label. Isso se aplica aos rótulos somente da segunda linha.This applies to labels in the second row only.

MapAreaAttributes

Obtém ou define os atributos de área de mapa, se houver, do rótulo personalizado.Gets or sets the map area attributes, if any, of the custom label.

MarkColor

Obtém ou define a cor do marcador do rótulo personalizado.Gets or sets the marker color for the custom label.

Name

Obtém ou define o nome do rótulo personalizado.Gets or sets the name of the custom label.

PostBackValue

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

RowIndex

Obtém ou define o índice da linha do rótulo personalizado.Gets or sets the index of the custom label row.

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)
Text

Obtém ou define o texto do rótulo personalizado.Gets or sets the custom label text.

ToolTip

Obtém ou define o texto de dica de ferramenta do rótulo personalizado.Gets or sets the custom label tooltip text.

ToPosition

Obtém ou define a posição final do rótulo personalizado, nas coordenadas do eixo.Gets or sets the end position of the custom label, in axis coordinates.

Url

Obtém ou define a URL de destino do rótulo personalizado.Gets or sets the target URL of the custom label.

Métodos

Clone()

Retorna um objeto de rótulo clonado.Returns a cloned label object.

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 usados pelo ChartElement e opcionalmente libera os recursos gerenciados.Releases the unmanaged resources used by the ChartElement and optionally releases the managed resources.

(Herdado de ChartElement)
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)
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