ChartGraphics.GetPositionFromAxis(String, AxisName, Double) Método

Definição

Aceita um valor do eixo fornecido para um eixo especificado e retorna o valor de pixel relativo.Takes a given axis value for a specified axis and returns the relative pixel value.

public:
 double GetPositionFromAxis(System::String ^ chartAreaName, System::Windows::Forms::DataVisualization::Charting::AxisName axis, double axisValue);
public double GetPositionFromAxis (string chartAreaName, System.Windows.Forms.DataVisualization.Charting.AxisName axis, double axisValue);
member this.GetPositionFromAxis : string * System.Windows.Forms.DataVisualization.Charting.AxisName * double -> double
Public Function GetPositionFromAxis (chartAreaName As String, axis As AxisName, axisValue As Double) As Double

Parâmetros

chartAreaName
String

Nome da área do gráfico.Chart area name.

axis
AxisName

Um valor de enumeração AxisName que identifica o eixo relevante.An AxisName enumeration value that identifies the relevant axis.

axisValue
Double

O valor de eixo a ser convertido em um valor de pixel relativo.The axis value to be converted to a relative pixel value.

Retornos

Double

Um valor string que representa o valor de eixo convertido, em coordenadas de pixel relativas.A string value that represents the converted axis value, in relative pixel coordinates.

Aplica-se a