Skip to content
Auto
Products

TimeScheduler

Namespace: TagBites.WinSchedulers
Assembly: TagBites.WinSchedulers.dll
Product: TagBites.WinSchedulers v. 1.3.8

Represents a time scheduler control.

public class TimeScheduler : TagBites.WinSchedulers.GridViewControl, TagBites.WinSchedulers.IGridViewAutoRefresh, TagBites.WinSchedulers.IGridViewDiagnosticInfo

Inheritance: PanelGridViewControl → TimeScheduler

Initializes a new instance of the TimeScheduler class.

public TimeScheduler()

Gets the set of the behavior options.

public TimeSchedulerBehaviorOptions BehaviorOptions { get; }

TimeSchedulerBehaviorOptions

A TimeSchedulerBehaviorOptions object representing set of the behavior options.

Gets or sets data source for loading data.

public ITimeSchedulerDataSource DataSource { get; set; }

ITimeSchedulerDataSource

A ITimeSchedulerDataSource object representing data source containing mechanism for loading data.

protected internal virtual GridViewScroller HorizontalScroller { get; }

GridViewScroller

Gets a resource scroll element.

public TimeSchedulerResourceScroller ResourceScroller { get; }

TimeSchedulerResourceScroller

A TimeSchedulerResourceScroller object representing a resource scroll element.

Gets or sets the selected task.

public object SelectedTask { get; set; }

object

An Object representing the selected task.

Gets the collection of selected tasks.

public IList<object> SelectedTasks { get; }

IList<object>

An IList representing the collection of selected tasks.

Gets a time scroll element.

public TimeSchedulerTimeScroller TimeScroller { get; }

TimeSchedulerTimeScroller

A TimeSchedulerTimeScroller object representing a time scroll element.

protected internal virtual GridViewScroller VerticalScroller { get; }

GridViewScroller

Gets or sets a value that indicates whether a time line is vertical.

public bool VerticalTimeLine { get; set; }

bool

true, if a time line is vertical; otherwise, false

Gets a view storing data for control.

public TimeSchedulerDataSourceView View { get; }

TimeSchedulerDataSourceView

A TimeSchedulerDataSourceView representing object storing data for control.

Gets the set of the view options.

public TimeSchedulerViewOptions ViewOptions { get; }

TimeSchedulerViewOptions

A TimeSchedulerViewOptions object representing set of the view options.

Gets or sets the interval visible in the content.

public TimeSchedulerInterval VisibleDateTimeInterval { get; set; }

TimeSchedulerInterval

A TimeSchedulerInterval representing the interval visible in the content.

ExportToPng(string, TimeSchedulerExportOptions)

Section titled “ExportToPng(string, TimeSchedulerExportOptions)”

Exports the view to a .png file.

public void ExportToPng(string fileName, TimeSchedulerExportOptions options)

Returns a resource at the specified point.

public object GetResourceAtPoint(Point point)
  • point Point
    A Point that specifies the pair of coordinates where a resource is located.

object

An Object representing a resource at the specified point.

Returns a resource header at the specified point.

public object GetResourceHeaderAtPoint(Point point)
  • point Point
    A Point that specifies the pair of coordinates where a resoruce header is located.

object

An Object representing a resource at the specified point.

Determines the index of a specific resource in the resource collection.

public int GetResourceIndex(object resource)
  • resource object
    The object to locate in the resource collection.

int

The index of resource if found in the resource collection; otherwise, -1.

Returns a task at the specified point.

public object GetTaskAtPoint(Point point)
  • point Point
    A Point that specifies the pair of coordinates where a task is located.

object

An Object representing a task at the specified point.

Determines the index of a task resource in the resource collection.

public int GetTaskResourceIndex(object task)

int

The index of a task resource if found in the resource collection; otherwise, -1.

protected virtual void OnKeyDown(KeyEventArgs e)

Raises the Control.MouseDoubleClick routed event.

protected virtual void OnMouseDoubleClick(MouseButtonEventArgs e)
protected virtual void OnMouseDown(MouseButtonEventArgs e)
protected virtual void OnMouseMove(MouseEventArgs e)
protected virtual void OnMouseUp(MouseButtonEventArgs e)
protected virtual void OnMouseWheel(MouseWheelEventArgs e)

Raised when style changes.

protected virtual void OnViewStyleChanged()

Prepares control content with specified columns and rows

protected virtual void PrepareContentCore(GridViewWindow view)

Prepares control headers.

protected virtual void PrepareHeaders()

Resets data in the DataSource and refreshes the view.

public virtual void Refresh()

Scrolls the content within the to the specified task

public void ScrollTo(object task)
  • task object
    An Object representing the task that the content scrolls to.

Scrolls the content within the to the specified task and alignment.

public void ScrollTo(DateTime dateTime, Alignment alignment)
  • dateTime DateTime
    The date time that the content scrolls to.
  • alignment Alignment
    Alignment of the task relative to its content rectangle.

Scrolls the content within the to the specified interval.

public void ScrollTo(DateTime start, DateTime end)
  • start DateTime
    The date time that the begin of content scrolls to.
  • end DateTime
    The date time that the end of content scrolls to.

Marks task as the SelectedTask and scroll to it.

public void Select(object task)
  • task object
    An Object representing the task that will be marked as selected.

Occurs when the task is drawn.

public EventHandler<TimeSchedulerCustomDrawObjectEventArgs> CustomDrawTask

EventHandler<TimeSchedulerCustomDrawObjectEventArgs>

Occurs when the background of the task is drawn.

public EventHandler<TimeSchedulerCustomDrawObjectEventArgs> CustomDrawTaskBackground

EventHandler<TimeSchedulerCustomDrawObjectEventArgs>

Occurs when the mouse pointer moves while over this element.

public EventHandler<MouseEventArgs> MouseMove

EventHandler<MouseEventArgs>

Occurs when the orientation of control is changed.

public EventHandler OrientationChanged

EventHandler

Occurs when the user clicks the header of resource.

public EventHandler<TimeSchedulerResourceHeaderEventArgs> ResourceHeaderClick

EventHandler<TimeSchedulerResourceHeaderEventArgs>

Occurs when the user double-clicks the header of resource.

public EventHandler<TimeSchedulerResourceHeaderEventArgs> ResourceHeaderDoubleClick

EventHandler<TimeSchedulerResourceHeaderEventArgs>

Occurs after the selected tasks are changed.

public EventHandler SelectedTasksChanged

EventHandler

Occurs when the menu of the settings is resolved.

public EventHandler<TimeSettingsMenuResolvedEventArgs> SettingsMenuResolved

EventHandler<TimeSettingsMenuResolvedEventArgs>

Occurs when the user clicks the task.

public EventHandler<TimeSchedulerTaskEventArgs> TaskClick

EventHandler<TimeSchedulerTaskEventArgs>

Occurs when the user double-clicks the task.

public EventHandler<TimeSchedulerTaskEventArgs> TaskDoubleClick

EventHandler<TimeSchedulerTaskEventArgs>

Occurs when the task is moved.

public EventHandler<TimeSchedulerTaskMovedEventArgs> TaskMoved

EventHandler<TimeSchedulerTaskMovedEventArgs>

Occurs when the task is moving.

public EventHandler<TimeSchedulerTaskMovingEventArgs> TaskMoving

EventHandler<TimeSchedulerTaskMovingEventArgs>

Occurs after the task is selected.

public EventHandler<TimeSchedulerTaskEventArgs> TaskSelected

EventHandler<TimeSchedulerTaskEventArgs>

Occurs when the user clicks an empty area.

public EventHandler<TimeSchedulerEventArgs> TimeClick

EventHandler<TimeSchedulerEventArgs>