Struct Period
Represents mechanism for supporting predefined and custom periods
Constructors
Declaration
public Period(BasePeriod basePeriod, int periodMultiplier)
Parameters
Properties
Declaration
public readonly BasePeriod BasePeriod { get; }
Property Value
Declaration
public static Period DAY1 { get; }
Property Value
Represents mechanism for supporting predefined and custom periods
Declaration
public TimeSpan Duration { get; }
Property Value
Declaration
public static Period HOUR1 { get; }
Property Value
Declaration
public static Period HOUR12 { get; }
Property Value
Declaration
public static Period HOUR2 { get; }
Property Value
Declaration
public static Period HOUR3 { get; }
Property Value
Declaration
public static Period HOUR4 { get; }
Property Value
Declaration
public static Period HOUR6 { get; }
Property Value
Declaration
public static Period HOUR8 { get; }
Property Value
Declaration
public static Period MIN1 { get; }
Property Value
Declaration
public static Period MIN10 { get; }
Property Value
Declaration
public static Period MIN15 { get; }
Property Value
Declaration
public static Period MIN2 { get; }
Property Value
Declaration
public static Period MIN3 { get; }
Property Value
Declaration
public static Period MIN30 { get; }
Property Value
Declaration
public static Period MIN4 { get; }
Property Value
Declaration
public static Period MIN5 { get; }
Property Value
Declaration
public static Period MONTH1 { get; }
Property Value
Declaration
public readonly int PeriodMultiplier { get; }
Property Value
Declaration
public static Period SECOND1 { get; }
Property Value
Declaration
public static Period SECOND10 { get; }
Property Value
Declaration
public static Period SECOND15 { get; }
Property Value
Declaration
public static Period SECOND30 { get; }
Property Value
Declaration
public static Period SECOND5 { get; }
Property Value
Declaration
public static Period TICK1 { get; }
Property Value
Declaration
public long Ticks { get; }
Property Value
Declaration
public static Period WEEK1 { get; }
Property Value
Declaration
public static Period YEAR1 { get; }
Property Value
Methods
Returns shorted string according to base period type
Declaration
public static string BasePeriodToShortString(BasePeriod basePeriod)
Parameters
Returns
Returns value in ticks according to base period type
Declaration
public static long TicksInBasePeriod(BasePeriod basePeriod)
Parameters
Returns
Converts time gap into dates range
Declaration
public void ToDatesRange(out DateTime from, out DateTime to)
Parameters
Represents mechanism for supporting predefined and custom periods
Declaration
public static bool TryParse(string value, out Period period)
Parameters
Returns