C# Class CoderForRent.Charting.Core.TimeUnitScalar

Afficher le fichier Open project: jogibear9988/SlGanttChart Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static ConvertToPixels ( System.DateTime CurrentTime, TimeUnits timeUnit ) : double
CurrentTime System.DateTime
timeUnit TimeUnits
Résultat double

GetPosition() public static méthode

public static GetPosition ( System.DateTime CurrentTime, System.DateTime TargetTime ) : double
CurrentTime System.DateTime
TargetTime System.DateTime
Résultat double

GetTimespan() public static méthode

public static GetTimespan ( System.DateTime CurrentTime, double distance ) : System.TimeSpan
CurrentTime System.DateTime
distance double
Résultat System.TimeSpan

GetWeekOfYear() public static méthode

public static GetWeekOfYear ( System.DateTime dateTime ) : int
dateTime System.DateTime
Résultat int

GetWidth() public static méthode

public static GetWidth ( System.DateTime CurrentTime, System.DateTime time, TimeUnits timeUnit ) : double
CurrentTime System.DateTime
time System.DateTime
timeUnit TimeUnits
Résultat double

IsEquivolent() public static méthode

public static IsEquivolent ( System.DateTime A, System.DateTime B, TimeUnits Scale ) : bool
A System.DateTime
B System.DateTime
Scale TimeUnits
Résultat bool