Back to Devexpress

SeriesPoint.DateTimeArgument Property

corelibraries-devexpress-dot-xtracharts-dot-seriespoint-d855b230.md

latest3.7 KB
Original Source

SeriesPoint.DateTimeArgument Property

Gets the point’s argument value of the date-time type.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[Browsable(false)]
public DateTime DateTimeArgument { get; set; }
vb
<Browsable(False)>
Public Property DateTimeArgument As Date

Property Value

TypeDescription
DateTime

A DateTime value that represents the date-time argument of the series data point.

|

Remarks

If a series point argument cannot be converted to a date-time value, the DateTimeArgument property returns MinValue.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DateTimeArgument property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-chart-draw-a-custom-series-marker-in-the-crosshair/CS/CustomDrawCrosshairSample/Form1.cs#L68

csharp
if (group.CrosshairElements[0] != null)
    group.HeaderElement.Text = String.Format("Sales in {0:yyyy}", group.CrosshairElements[0].SeriesPoint.DateTimeArgument);
foreach (CrosshairElement element in group.CrosshairElements) {

winforms-charts-configure-swift-plot-chart/CS/ASwiftPlotChart/Form1.cs#L49

csharp
foreach (SeriesPoint point in series1.Points)
    if (point.DateTimeArgument < minDate)
        pointsToRemoveCount++;

winforms-chart-draw-a-custom-series-marker-in-the-crosshair/VB/CustomDrawCrosshairSample/Form1.vb#L71

vb
For Each group As CrosshairElementGroup In e.CrosshairElementGroups
    If group.CrosshairElements(0) IsNot Nothing Then group.HeaderElement.Text = String.Format("Sales in {0:yyyy}", group.CrosshairElements(0).SeriesPoint.DateTimeArgument)
    For Each element As CrosshairElement In group.CrosshairElements

winforms-charts-configure-swift-plot-chart/VB/ASwiftPlotChart/Form1.vb#L53

vb
For Each point As SeriesPoint In series1.Points
    If point.DateTimeArgument < minDate Then pointsToRemoveCount += 1
Next

See Also

SeriesPoint Class

SeriesPoint Members

DevExpress.XtraCharts Namespace