ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.TickGenerators.TimeUnits.Millisecond Class Reference
Inheritance diagram for ScottPlot.TickGenerators.TimeUnits.Millisecond:
ScottPlot.TickGenerators.ITimeUnit

Public Member Functions

DateTime Snap (DateTime dt)
 Return a given date "snapped" back to the nearest nice tick position. Use this to find a good tick position for a given DateTime.
 
string GetDateTimeFormatString ()
 Returns the format string used to display tick labels of this time unit. https://learn.microsoft.com/en-us/dotnet/api/system.datetime.tostring.
 
DateTime Next (DateTime dateTime, int increment=1)
 Return the DateTime N units relative to this one.
 

Properties

IReadOnlyList< int > Divisors [get]
 An array of integers that serve as good divisors to subdivide this time unit.
 
TimeSpan MinSize [get]
 Minimum span this time unit can represent. To represent spans smaller than this, try the next smaller unit.
 
- Properties inherited from ScottPlot.TickGenerators.ITimeUnit

Member Function Documentation

◆ GetDateTimeFormatString()

string ScottPlot.TickGenerators.TimeUnits.Millisecond.GetDateTimeFormatString ( )
inline

Returns the format string used to display tick labels of this time unit. https://learn.microsoft.com/en-us/dotnet/api/system.datetime.tostring.

Implements ScottPlot.TickGenerators.ITimeUnit.

◆ Next()

DateTime ScottPlot.TickGenerators.TimeUnits.Millisecond.Next ( DateTime  dateTime,
int  increment = 1 
)
inline

Return the DateTime N units relative to this one.

Implements ScottPlot.TickGenerators.ITimeUnit.

◆ Snap()

DateTime ScottPlot.TickGenerators.TimeUnits.Millisecond.Snap ( DateTime  dateTime)
inline

Return a given date "snapped" back to the nearest nice tick position. Use this to find a good tick position for a given DateTime.

Implements ScottPlot.TickGenerators.ITimeUnit.

Property Documentation

◆ Divisors

IReadOnlyList<int> ScottPlot.TickGenerators.TimeUnits.Millisecond.Divisors
get

An array of integers that serve as good divisors to subdivide this time unit.

Implements ScottPlot.TickGenerators.ITimeUnit.

◆ MinSize

TimeSpan ScottPlot.TickGenerators.TimeUnits.Millisecond.MinSize
get

Minimum span this time unit can represent. To represent spans smaller than this, try the next smaller unit.

Implements ScottPlot.TickGenerators.ITimeUnit.


The documentation for this class was generated from the following file: