Articles in this section
Category / Section

How can I return DateTime value through IChartSeriesModel?

1 min read

 

The IChartSeriesModel can return DateTime values as a double value using the ToOADate method of DateTime.

C#

public double GetX(int xIndex)

{

return this.x[xIndex].ToOADate();

}

VB

Public Function GetX(ByVal xIndex As Integer) As Double Implements IChartSeriesModel.GetX

Return Me.x(xIndex).ToOADate()

End Function

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied