C# Class Itenso.TimePeriod.TimeRange

Inheritance: ITimeRange
Afficher le fichier Open project: jwg4/date-difference Class Usage Examples

Méthodes publiques

Свойство Type Description
Anytime TimeRange

Méthodes publiques

Méthode Description
Copy ( ) : ITimeRange
Copy ( System.TimeSpan offset ) : ITimeRange
Equals ( object obj ) : bool
ExpandEndTo ( System.DateTime moment ) : void
ExpandStartTo ( System.DateTime moment ) : void
ExpandTo ( System.DateTime moment ) : void
ExpandTo ( ITimePeriod period ) : void
GetDescription ( ITimeFormatter formatter = null ) : string
GetHashCode ( ) : int
GetIntersection ( ITimePeriod period ) : ITimeRange
GetRelation ( ITimePeriod test ) : PeriodRelation
HasInside ( System.DateTime test ) : bool
HasInside ( ITimePeriod test ) : bool
IntersectsWith ( ITimePeriod test ) : bool
IsSamePeriod ( ITimePeriod test ) : bool
Move ( System.TimeSpan offset ) : void
OverlapsWith ( ITimePeriod test ) : bool
Reset ( ) : void
Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
ShrinkEndTo ( System.DateTime moment ) : void
ShrinkStartTo ( System.DateTime moment ) : void
ShrinkTo ( ITimePeriod period ) : void
TimeRange ( ) : System
TimeRange ( System.DateTime start, System.DateTime end, bool isReadOnly = false ) : System
TimeRange ( System.DateTime start, System.TimeSpan duration, bool isReadOnly = false ) : System
TimeRange ( System.DateTime moment, bool isReadOnly = false ) : System
TimeRange ( ITimePeriod copy ) : System
ToString ( ) : string

Méthodes protégées

Méthode Description
CheckModification ( ) : void
ComputeHashCode ( ) : int
Format ( ITimeFormatter formatter ) : string
IsEqual ( object obj ) : bool
TimeRange ( ITimePeriod copy, bool isReadOnly ) : System

Private Methods

Méthode Description
HasSameData ( TimeRange comp ) : bool
TimeRange ( bool isReadOnly = false ) : System

Method Details

CheckModification() protected méthode

protected CheckModification ( ) : void
Résultat void

ComputeHashCode() protected méthode

protected ComputeHashCode ( ) : int
Résultat int

Copy() public méthode

public Copy ( ) : ITimeRange
Résultat ITimeRange

Copy() public méthode

public Copy ( System.TimeSpan offset ) : ITimeRange
offset System.TimeSpan
Résultat ITimeRange

Equals() public final méthode

public final Equals ( object obj ) : bool
obj object
Résultat bool

ExpandEndTo() public méthode

public ExpandEndTo ( System.DateTime moment ) : void
moment System.DateTime
Résultat void

ExpandStartTo() public méthode

public ExpandStartTo ( System.DateTime moment ) : void
moment System.DateTime
Résultat void

ExpandTo() public méthode

public ExpandTo ( System.DateTime moment ) : void
moment System.DateTime
Résultat void

ExpandTo() public méthode

public ExpandTo ( ITimePeriod period ) : void
period ITimePeriod
Résultat void

Format() protected méthode

protected Format ( ITimeFormatter formatter ) : string
formatter ITimeFormatter
Résultat string

GetDescription() public méthode

public GetDescription ( ITimeFormatter formatter = null ) : string
formatter ITimeFormatter
Résultat string

GetHashCode() public final méthode

public final GetHashCode ( ) : int
Résultat int

GetIntersection() public méthode

public GetIntersection ( ITimePeriod period ) : ITimeRange
period ITimePeriod
Résultat ITimeRange

GetRelation() public méthode

public GetRelation ( ITimePeriod test ) : PeriodRelation
test ITimePeriod
Résultat PeriodRelation

HasInside() public méthode

public HasInside ( System.DateTime test ) : bool
test System.DateTime
Résultat bool

HasInside() public méthode

public HasInside ( ITimePeriod test ) : bool
test ITimePeriod
Résultat bool

IntersectsWith() public méthode

public IntersectsWith ( ITimePeriod test ) : bool
test ITimePeriod
Résultat bool

IsEqual() protected méthode

protected IsEqual ( object obj ) : bool
obj object
Résultat bool

IsSamePeriod() public méthode

public IsSamePeriod ( ITimePeriod test ) : bool
test ITimePeriod
Résultat bool

Move() public méthode

public Move ( System.TimeSpan offset ) : void
offset System.TimeSpan
Résultat void

OverlapsWith() public méthode

public OverlapsWith ( ITimePeriod test ) : bool
test ITimePeriod
Résultat bool

Reset() public méthode

public Reset ( ) : void
Résultat void

Setup() public méthode

public Setup ( System.DateTime newStart, System.DateTime newEnd ) : void
newStart System.DateTime
newEnd System.DateTime
Résultat void

ShrinkEndTo() public méthode

public ShrinkEndTo ( System.DateTime moment ) : void
moment System.DateTime
Résultat void

ShrinkStartTo() public méthode

public ShrinkStartTo ( System.DateTime moment ) : void
moment System.DateTime
Résultat void

ShrinkTo() public méthode

public ShrinkTo ( ITimePeriod period ) : void
period ITimePeriod
Résultat void

TimeRange() public méthode

public TimeRange ( ) : System
Résultat System

TimeRange() public méthode

public TimeRange ( System.DateTime start, System.DateTime end, bool isReadOnly = false ) : System
start System.DateTime
end System.DateTime
isReadOnly bool
Résultat System

TimeRange() public méthode

public TimeRange ( System.DateTime start, System.TimeSpan duration, bool isReadOnly = false ) : System
start System.DateTime
duration System.TimeSpan
isReadOnly bool
Résultat System

TimeRange() public méthode

public TimeRange ( System.DateTime moment, bool isReadOnly = false ) : System
moment System.DateTime
isReadOnly bool
Résultat System

TimeRange() public méthode

public TimeRange ( ITimePeriod copy ) : System
copy ITimePeriod
Résultat System

TimeRange() protected méthode

protected TimeRange ( ITimePeriod copy, bool isReadOnly ) : System
copy ITimePeriod
isReadOnly bool
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

Anytime public_oe static_oe property

public static TimeRange,Itenso.TimePeriod Anytime
Résultat TimeRange