TimeSchedulerTimeScroller
Namespace: TagBites.WinSchedulers.Sections
Assembly: TagBites.WinSchedulers.dll
Product: TagBites.WinSchedulers v. 1.3.8
Represents time scroll for TimeScheduler. This class cannot be inherited.
public sealed class TimeSchedulerTimeScroller : TagBites.WinSchedulers.Sections.GridViewConstSizeOffsetScrollerInheritance: object → GridViewElement → GridViewScroller → GridViewOffsetScroller → GridViewConstSizeOffsetScroller → TimeSchedulerTimeScroller
Properties
Section titled “Properties”HeaderCount
Section titled “HeaderCount”public virtual long HeaderCount { get; }Property Value
Section titled “Property Value”public TimeSpan Scale { get; set; }Property Value
Section titled “Property Value”ViewportInterval
Section titled “ViewportInterval”public TimeSchedulerInterval ViewportInterval { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”DateTimeToPosition(DateTime)
Section titled “DateTimeToPosition(DateTime)”public double DateTimeToPosition(DateTime date)Parameters
Section titled “Parameters”dateDateTime
Returns
Section titled “Returns”DateTimeToPositionOnScreen(DateTime)
Section titled “DateTimeToPositionOnScreen(DateTime)”public double DateTimeToPositionOnScreen(DateTime date)Parameters
Section titled “Parameters”dateDateTime
Returns
Section titled “Returns”GetHeader(long)
Section titled “GetHeader(long)”public virtual object GetHeader(long index)Parameters
Section titled “Parameters”indexlong
Returns
Section titled “Returns”GetHeaderSize(long)
Section titled “GetHeaderSize(long)”public virtual double GetHeaderSize(long index)Parameters
Section titled “Parameters”indexlong
Returns
Section titled “Returns”PositionOnScreenToDateTime(Point)
Section titled “PositionOnScreenToDateTime(Point)”public DateTime PositionOnScreenToDateTime(Point point)Parameters
Section titled “Parameters”pointPoint
Returns
Section titled “Returns”PositionOnScreenToDateTime(double)
Section titled “PositionOnScreenToDateTime(double)”public DateTime PositionOnScreenToDateTime(double possition)Parameters
Section titled “Parameters”possitiondouble
Returns
Section titled “Returns”PositionToDateTime(double)
Section titled “PositionToDateTime(double)”Returns calculated DateTime value by specified position.
public DateTime PositionToDateTime(double position)Parameters
Section titled “Parameters”positiondouble
The position to calculation.
Returns
Section titled “Returns”A DateTime represents value at specified position.
ScrollTo(DateTime)
Section titled “ScrollTo(DateTime)”Scroll content to specified date time with center alignment.
public void ScrollTo(DateTime dateTime)Parameters
Section titled “Parameters”dateTimeDateTime
ScrollTo(DateTime, Alignment)
Section titled “ScrollTo(DateTime, Alignment)”Scroll content to specified date time and align layout.
public void ScrollTo(DateTime dateTime, Alignment alignment)Parameters
Section titled “Parameters”dateTimeDateTime
The instant in time to show.alignmentAlignment
The alignment of the content relative to its layout rectangle.
ScrollTo(TimeSchedulerInterval)
Section titled “ScrollTo(TimeSchedulerInterval)”Scroll content to specified interval.
public void ScrollTo(TimeSchedulerInterval interval)Parameters
Section titled “Parameters”intervalTimeSchedulerInterval
SetNearestZoom()
Section titled “SetNearestZoom()”Scroll content to the nearest zoom by the Scale.
public void SetNearestZoom()Zoom(int)
Section titled “Zoom(int)”Sets Scale to current value moved by specified offset.
public void Zoom(int offset)Parameters
Section titled “Parameters”offsetint
Zoom(TimeSpan)
Section titled “Zoom(TimeSpan)”Sets Scale to specified scale.
public void Zoom(TimeSpan scale)Parameters
Section titled “Parameters”scaleTimeSpan
ZoomIn()
Section titled “ZoomIn()”Sets Scale to a next value from zooms collection.
public void ZoomIn()ZoomOut()
Section titled “ZoomOut()”Sets Scale to a previous value from zooms collection.
public void ZoomOut()Events
Section titled “Events”ScaleChanged
Section titled “ScaleChanged”Occurs when the Scale is changed.
public EventHandler ScaleChanged