TimePeriodDuration property (XY Plot object)
Returns or sets the duration for the current time period. To set this property, the TimePeriodAbsoluteMode property must be set to
False
. Read/write. String.Syntax
XYPlot1
.TimePeriodDuration
[ = value
]where
XYPlot1
- is the name of an XY Plot object or an expression that evaluates to an XY Plot object.value
- is a parameter of the type String. This string represents the relative amount of time from the current time.Relative times are specified in the format
sNu
()
where:- s- direction. Only "-" (minus sign) is supported.
- N -duration
- u- duration units.smeans seconds,mmeans minutes, andhmeans hours.
Examples of relative times:
- -10m(): means last ten minutes
- -2h(): means last two hours
- -168h(): means last week
The value returned for the TimePeriodDuration property will be in the format of
d.HH:MM:SS
where:- d- Days
- HH- Hours
- MM -Minutes
- SS- Seconds
Example
Private Sub SetTimePeriodDuration() XYPlot1.TimePeriodAbsoluteMode = False XYPlot1.TimePeriodDuration = "-10m()" End Sub
Provide Feedback