Class DayPart
Represents a part of a day. The built-in parts of day supports a roughly way to determine whether it is; Night, Morning, Forenoon, Afternoon or Evening. Keep in mind that there is no exact science for day parts; it is as much a cultural as it is a personal preference.
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public class DayPart
Constructors
| Improve this Doc View SourceDayPart(String, TimeRange)
Initializes a new instance of the DayPart class.
Declaration
public DayPart(string name, TimeRange range)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the part of a day. |
TimeRange | range | The time range to cover. |
Properties
| Improve this Doc View SourceAfternoon
Gets the day part of a 24-hour period that approximates to Afternoon.
Declaration
public static DayPart Afternoon { get; }
Property Value
Type | Description |
---|---|
DayPart | The range of a 24-hour period that approximates to Afternoon. |
All
Gets the day parts of a 24-hour range of period.
Declaration
public static IEnumerable<DayPart> All { get; }
Property Value
Type | Description |
---|---|
IEnumerable<DayPart> | The day parts of a 24-hour range of period. |
Evening
Gets the day part of a 24-hour period that approximates to Evening.
Declaration
public static DayPart Evening { get; }
Property Value
Type | Description |
---|---|
DayPart | The range of a 24-hour period that approximates to Evening. |
Forenoon
Gets the day part of a 24-hour period that approximates to Forenoon.
Declaration
public static DayPart Forenoon { get; }
Property Value
Type | Description |
---|---|
DayPart | The range of a 24-hour period that approximates to Forenoon. |
Morning
Gets the day part of a 24-hour period that approximates to Morning.
Declaration
public static DayPart Morning { get; }
Property Value
Type | Description |
---|---|
DayPart | The range of a 24-hour period that approximates to Morning. |
Name
Gets the name of a DayPart.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String | The name of a DayPart. |
Night
Gets the day part of a 24-hour period that approximates to Night.
Declaration
public static DayPart Night { get; }
Property Value
Type | Description |
---|---|
DayPart | The range of a 24-hour period that approximates to Night. |
Range
Gets the approximate range that this DayPart represents.
Declaration
public TimeRange Range { get; set; }
Property Value
Type | Description |
---|---|
TimeRange | The approximate range that this DayPart represents. |
Methods
| Improve this Doc View SourceToString()
Returns a String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents this instance. |