Skip to content
Auto
Products

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.GridViewConstSizeOffsetScroller

Inheritance: objectGridViewElementGridViewScrollerGridViewOffsetScrollerGridViewConstSizeOffsetScroller → TimeSchedulerTimeScroller

public virtual long HeaderCount { get; }

long

public TimeSpan Scale { get; set; }

TimeSpan

public TimeSchedulerInterval ViewportInterval { get; }

TimeSchedulerInterval

public double DateTimeToPosition(DateTime date)

double

public double DateTimeToPositionOnScreen(DateTime date)

double

public virtual object GetHeader(long index)

object

public virtual double GetHeaderSize(long index)

double

public DateTime PositionOnScreenToDateTime(Point point)

DateTime

public DateTime PositionOnScreenToDateTime(double possition)

DateTime

Returns calculated DateTime value by specified position.

public DateTime PositionToDateTime(double position)
  • position double
    The position to calculation.

DateTime

A DateTime represents value at specified position.

Scroll content to specified date time with center alignment.

public void ScrollTo(DateTime dateTime)

Scroll content to specified date time and align layout.

public void ScrollTo(DateTime dateTime, Alignment alignment)
  • dateTime DateTime
    The instant in time to show.
  • alignment Alignment
    The alignment of the content relative to its layout rectangle.

Scroll content to specified interval.

public void ScrollTo(TimeSchedulerInterval interval)

Scroll content to the nearest zoom by the Scale.

public void SetNearestZoom()

Sets Scale to current value moved by specified offset.

public void Zoom(int offset)

Sets Scale to specified scale.

public void Zoom(TimeSpan scale)

Sets Scale to a next value from zooms collection.

public void ZoomIn()

Sets Scale to a previous value from zooms collection.

public void ZoomOut()

Occurs when the Scale is changed.

public EventHandler ScaleChanged

EventHandler