API Reference
Class
HtmlChartXRangePreset
A named fixed source-coordinate span anchored at the full-domain maximum.
Inheritance
- Object
- HtmlChartXRangePreset
Remarks
Time axes use OLE Automation days. Fixed durations do not represent calendar months, years, business days or trading sessions. A span covering the full domain selects its complete range.
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
Constructors
public HtmlChartXRangePreset(String label, Double span) #Creates a numeric source-coordinate range preset.
Parameters
- label System.String
- The visible and accessible control label.
- span System.Double
- A finite positive source-coordinate span; time axes use days.
Exceptions
ArgumentException– The label is empty.ArgumentOutOfRangeException– The span is nonpositive or nonfinite.
Methods
public static HtmlChartXRangePreset FromDuration(String label, TimeSpan duration) #Returns:
HtmlChartXRangePresetCreates a fixed-duration time-axis preset without requiring OLE Automation unit conversion.
Parameters
- label System.String
- The visible and accessible control label.
- duration System.TimeSpan
- A positive elapsed duration, independent of display time zone and calendar.
Returns
A preset whose source-coordinate span is the duration in days.
Exceptions
ArgumentException– The label is empty.ArgumentOutOfRangeException– The duration is nonpositive.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?