HitTestResult.Axis Propriedade
Definição
Obtém ou define o objeto Axis que pode ser associado a um elemento do gráfico retornado por um teste de clique.Gets or sets the Axis object that may be associated with a chart element returned by a hit test. A presença de um objeto Axis associado depende de se um elemento do gráfico foi detectado no local especificado e do tipo de elemento do gráfico retornado.The presence of an associated Axis object depends on whether a chart element was detected at the given location, and the type of chart element returned.
public:
property System::Windows::Forms::DataVisualization::Charting::Axis ^ Axis { System::Windows::Forms::DataVisualization::Charting::Axis ^ get(); void set(System::Windows::Forms::DataVisualization::Charting::Axis ^ value); };
public System.Windows.Forms.DataVisualization.Charting.Axis Axis { get; set; }
member this.Axis : System.Windows.Forms.DataVisualization.Charting.Axis with get, set
Public Property Axis As Axis
Valor da propriedade
Um Axis objeto, caso contrário null .An Axis object, otherwise null. O valor padrão é null.The default value is null.
Comentários
Se o objeto de gráfico retornado pelo teste de clique for um objeto associado a um eixo, por exemplo, um elemento ScrollBar, uma marca de escala, uma linha de grade ou uma faixa, a Axis Propriedade fará referência ao Axis objeto com o qual o objeto de gráfico retornado está associado.If the chart object returned by the hit test is an object that is associated with an axis - for example, a scrollbar element, tick mark, grid line or strip line - the Axis property will reference the Axis object with which the returned chart object is associated. Caso contrário, essa propriedade será null .Otherwise this property will be null.
Observe que o HitTest método pode ser chamado explicitamente, caso em que um elemento de gráfico pode ou não estar no local especificado.Note that the HitTest method can be called explicitly, in which case a chart element may or may not be at the specified location.