TradingChartSetTimeRange Method |
LightningChart .NET Help
Manually set the time range of the loaded data. Can automatically adjust the current data set according to given time range.
If no data has been loaded, the next data set loaded from a provider will use this range unless set otherwise.
Namespace:
Arction.CustomControls.Trader.WinForms
Assembly:
Arction.WinForms.TradingCharts (in Arction.WinForms.TradingCharts.dll) Version: 10.3.1
Syntaxpublic void SetTimeRange(
DateTime startTime,
DateTime endTime,
bool dropDataOutsideRange = true
)
Public Sub SetTimeRange (
startTime As DateTime,
endTime As DateTime,
Optional dropDataOutsideRange As Boolean = true
)
public:
void SetTimeRange(
DateTime startTime,
DateTime endTime,
bool dropDataOutsideRange = true
)
Parameters
- startTime
- Type: SystemDateTime
DateTime of the first data point - endTime
- Type: SystemDateTime
DateTime of the last data point - dropDataOutsideRange (Optional)
- Type: SystemBoolean
If set true (default), drops data points outside the visible time range. When false, only changes the X-axis minimum and maximum.
See Also