API Documentation

TimeSchedulerTimeScroller

Namespace: TagBites.WinSchedulers.Sections
Assembly: TagBites.WinSchedulers.dll

Represents time scroll for TagBites.WinSchedulers.TimeScheduler. This class cannot be inherited.

public sealed class TimeSchedulerTimeScroller : TagBites.WinSchedulers.Sections.GridViewConstSizeOffsetScroller

Properties

HeaderCount

public long HeaderCount { get; }

Result Type: long

Scale

public TimeSpan Scale { get; set; }

Result Type: TimeSpan

Methods

DateTimeToPosition(DateTime)

public double DateTimeToPosition(DateTime date)

Result Type: double

Parameters

TypeName
DateTimedate

DateTimeToPositionOnScreen(DateTime)

public double DateTimeToPositionOnScreen(DateTime date)

Result Type: double

Parameters

TypeName
DateTimedate

GetHeader(long)

public object GetHeader(long index)

Result Type: object

Parameters

TypeName
longindex

GetHeaderSize(long)

public double GetHeaderSize(long index)

Result Type: double

Parameters

TypeName
longindex

PositionOnScreenToDateTime(Point)

public DateTime PositionOnScreenToDateTime(Point point)

Result Type: DateTime

Parameters

TypeName
Pointpoint

PositionOnScreenToDateTime(double)

public DateTime PositionOnScreenToDateTime(double possition)

Result Type: DateTime

Parameters

TypeName
doublepossition

PositionToDateTime(double)

Returns calculated System.DateTime value by specified position.

public DateTime PositionToDateTime(double position)

Result Type: DateTime

Parameters

TypeName
doublepositionThe position to calculation.

ScrollTo(DateTime)

Scroll content to specified date time with center alignment.

public void ScrollTo(DateTime dateTime)

Result Type: void

Parameters

TypeName
DateTimedateTime

ScrollTo(DateTime, Alignment)

Scroll content to specified date time and align layout.

public void ScrollTo(DateTime dateTime, Alignment alignment)

Result Type: void

Parameters

TypeName
DateTimedateTimeThe instant in time to show.
AlignmentalignmentThe alignment of the content relative to its layout rectangle.

ScrollTo(DateTimeInterval)

Scroll content to specified interval.

public void ScrollTo(DateTimeInterval interval)

Result Type: void

Parameters

TypeName
DateTimeIntervalinterval

SetNearestZoom()

Scroll content to the nearest zoom by the TagBites.WinSchedulers.Sections.TimeSchedulerTimeScroller.Scale.

public void SetNearestZoom()

Result Type: void

Zoom(int)

Sets TagBites.WinSchedulers.Sections.TimeSchedulerTimeScroller.Scale to current value moved by specified offset.

public void Zoom(int offset)

Result Type: void

Parameters

TypeName
intoffset

Zoom(TimeSpan)

Sets TagBites.WinSchedulers.Sections.TimeSchedulerTimeScroller.Scale to specified scale.

public void Zoom(TimeSpan scale)

Result Type: void

Parameters

TypeName
TimeSpanscale

ZoomIn()

Sets TagBites.WinSchedulers.Sections.TimeSchedulerTimeScroller.Scale to a next value from zooms collection.

public void ZoomIn()

Result Type: void

ZoomOut()

Sets TagBites.WinSchedulers.Sections.TimeSchedulerTimeScroller.Scale to a previous value from zooms collection.

public void ZoomOut()

Result Type: void

Events

ScaleChanged

Occurs when the TagBites.WinSchedulers.Sections.TimeSchedulerTimeScroller.Scale is changed.

public EventHandler ScaleChanged

Result Type: EventHandler