DateTimeRange class¶
Defined in
Namespace: CrissCross
Assembly: CrissCross.dll
Full name: CrissCross.DateTimeRange
Modifiers: public sealed
Summary¶
Represents a platform-neutral date/time range for filtering, reporting, and dashboard controls.
Applies to
net10.0, net10.0-windows10.0.19041, net10.0-desktop1.0, net10.0-browserwasm1.0, net9.0, net9.0-windows10.0.19041, net9.0-desktop1.0, net9.0-browserwasm1.0, net8.0, net8.0-macos14.5, net8.0-windows10.0.19041, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-tvos17.2, netstandard2.1, net471, net481
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [DateTimeRange](# class. |
Properties¶
| Name | Summary |
|---|---|
| Start | Gets the inclusive range start. |
| End | Gets the inclusive or exclusive range end. |
| Preset | Gets the preset that produced the range. |
| Label | Gets the user-facing label used by range picker controls. |
| IsEndInclusive | Gets a value indicating whether the end instant is inclusive. |
| MaximumDuration | Gets the optional maximum allowed duration. |
| HasValue | Gets a value indicating whether both range endpoints are present. |
| IsReversed | Gets a value indicating whether the start instant is after the end instant. |
| ExceedsMaximumDuration | Gets a value indicating whether the configured maximum duration is exceeded. |
| Duration | Gets the valid range duration, or Zero when the range is incomplete or invalid. |
| IsValid | Gets a value indicating whether the range is complete and satisfies validation constraints. |
| ValidationMessage | Gets validation text for invalid or incomplete ranges. |
| DisplayText | Gets compact user-facing range text. |
Methods¶
| Name | Summary |
|---|---|
| Contains | Determines whether the supplied value falls inside this range. |