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
Type | Name | |
---|---|---|
DateTime | date |
DateTimeToPositionOnScreen(DateTime)
public double DateTimeToPositionOnScreen(DateTime date)
Result Type: double
Parameters
Type | Name | |
---|---|---|
DateTime | date |
GetHeader(long)
public object GetHeader(long index)
Result Type: object
Parameters
Type | Name | |
---|---|---|
long | index |
GetHeaderSize(long)
public double GetHeaderSize(long index)
Result Type: double
Parameters
Type | Name | |
---|---|---|
long | index |
PositionOnScreenToDateTime(Point)
public DateTime PositionOnScreenToDateTime(Point point)
Result Type: DateTime
Parameters
Type | Name | |
---|---|---|
Point | point |
PositionOnScreenToDateTime(double)
public DateTime PositionOnScreenToDateTime(double possition)
Result Type: DateTime
Parameters
Type | Name | |
---|---|---|
double | possition |
PositionToDateTime(double)
Returns calculated System.DateTime value by specified position.
public DateTime PositionToDateTime(double position)
Result Type: DateTime
Parameters
Type | Name | |
---|---|---|
double | position | The position to calculation. |
ScrollTo(DateTime)
Scroll content to specified date time with center alignment.
public void ScrollTo(DateTime dateTime)
Result Type: void
Parameters
Type | Name | |
---|---|---|
DateTime | dateTime |
ScrollTo(DateTime, Alignment)
Scroll content to specified date time and align layout.
public void ScrollTo(DateTime dateTime, Alignment alignment)
Result Type: void
Parameters
Type | Name | |
---|---|---|
DateTime | dateTime | The instant in time to show. |
Alignment | alignment | The 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
Type | Name | |
---|---|---|
DateTimeInterval | interval |
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
Type | Name | |
---|---|---|
int | offset |
Zoom(TimeSpan)
Sets TagBites.WinSchedulers.Sections.TimeSchedulerTimeScroller.Scale to specified scale.
public void Zoom(TimeSpan scale)
Result Type: void
Parameters
Type | Name | |
---|---|---|
TimeSpan | scale |
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