public GetDateTime ( int x ) : System.DateTime | ||
x | int | |
Résultat | System.DateTime |
public DateTime GetDateTime(int x)
{
double num = (double)(Width - this.canvasLeftOffset - this.canvasRightOffset) / (double)(this.lastIndex - this.firstIndex + 1);
return this.mainSeries.GetDateTime((int)Math.Floor((double)(x - this.canvasLeftOffset) / num) + this.firstIndex);
}
public DateTime GetDateTime(int x) { return(Chart.GetDateTime(x)); }