C# Class CoderForRent.Charting.Core.TimeUnitScalar

Datei anzeigen Open project: jogibear9988/SlGanttChart Class Usage Examples

Public Methods

Method Description
ConvertToPixels ( System.DateTime CurrentTime, TimeUnits timeUnit ) : double
GetPosition ( System.DateTime CurrentTime, System.DateTime TargetTime ) : double
GetTimespan ( System.DateTime CurrentTime, double distance ) : System.TimeSpan
GetWeekOfYear ( System.DateTime dateTime ) : int
GetWidth ( System.DateTime CurrentTime, System.DateTime time, TimeUnits timeUnit ) : double
IsEquivolent ( System.DateTime A, System.DateTime B, TimeUnits Scale ) : bool

Method Details

ConvertToPixels() public static method

public static ConvertToPixels ( System.DateTime CurrentTime, TimeUnits timeUnit ) : double
CurrentTime System.DateTime
timeUnit TimeUnits
return double

GetPosition() public static method

public static GetPosition ( System.DateTime CurrentTime, System.DateTime TargetTime ) : double
CurrentTime System.DateTime
TargetTime System.DateTime
return double

GetTimespan() public static method

public static GetTimespan ( System.DateTime CurrentTime, double distance ) : System.TimeSpan
CurrentTime System.DateTime
distance double
return System.TimeSpan

GetWeekOfYear() public static method

public static GetWeekOfYear ( System.DateTime dateTime ) : int
dateTime System.DateTime
return int

GetWidth() public static method

public static GetWidth ( System.DateTime CurrentTime, System.DateTime time, TimeUnits timeUnit ) : double
CurrentTime System.DateTime
time System.DateTime
timeUnit TimeUnits
return double

IsEquivolent() public static method

public static IsEquivolent ( System.DateTime A, System.DateTime B, TimeUnits Scale ) : bool
A System.DateTime
B System.DateTime
Scale TimeUnits
return bool