API Documentation

TimeScheduler

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

Represents a time scheduler control.

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

Constructors

TimeScheduler()

Initializes a new instance of the TagBites.WinSchedulers.TimeScheduler class.

public void TimeScheduler()

Result Type: void

Properties

BehaviorOptions

Gets the set of the behavior options.

public TimeSchedulerBehaviorOptions BehaviorOptions { get; }

Result Type: TimeSchedulerBehaviorOptions

DataSource

Gets or sets data source for loading data.

public ITimeSchedulerDataSource DataSource { get; set; }

Result Type: ITimeSchedulerDataSource

HorizontalScroller

protected internal GridViewScroller HorizontalScroller { get; }

Result Type: GridViewScroller

ResourceScroller

Gets a resource scroll element.

public TimeSchedulerResourceScroller ResourceScroller { get; }

Result Type: TimeSchedulerResourceScroller

SelectedTask

Gets or sets the selected task.

public object SelectedTask { get; set; }

Result Type: object

SelectedTasks

Gets the collection of selected tasks.

public IList<object> SelectedTasks { get; }

Result Type: IList<object>

TimeScroller

Gets a time scroll element.

public TimeSchedulerTimeScroller TimeScroller { get; }

Result Type: TimeSchedulerTimeScroller

VerticalScroller

protected internal GridViewScroller VerticalScroller { get; }

Result Type: GridViewScroller

VerticalTimeLine

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

public bool VerticalTimeLine { get; set; }

Result Type: bool

View

Gets a view storing data for control.

public TimeSchedulerDataSourceView View { get; }

Result Type: TimeSchedulerDataSourceView

ViewOptions

Gets the set of the view options.

public TimeSchedulerViewOptions ViewOptions { get; }

Result Type: TimeSchedulerViewOptions

VisibleDateTimeInterval

Gets or sets the interval visible in the content.

public DateTimeInterval VisibleDateTimeInterval { get; set; }

Result Type: DateTimeInterval

Methods

GetResourceAtPoint(Point)

Returns a resource at the specified point.

public object GetResourceAtPoint(Point point)

Result Type: object

Parameters

TypeName
PointpointA that specifies the pair of coordinates where a resource is located.

GetResourceHeaderAtPoint(Point)

Returns a resource header at the specified point.

public object GetResourceHeaderAtPoint(Point point)

Result Type: object

Parameters

TypeName
PointpointA that specifies the pair of coordinates where a resoruce header is located.

GetTaskAtPoint(Point)

Returns a task at the specified point.

public object GetTaskAtPoint(Point point)

Result Type: object

Parameters

TypeName
PointpointA that specifies the pair of coordinates where a task is located.

OnKeyDown(KeyEventArgs)

protected void OnKeyDown(KeyEventArgs e)

Result Type: void

Parameters

TypeName
KeyEventArgse

OnMouseDoubleClick(MouseButtonEventArgs)

protected void OnMouseDoubleClick(MouseButtonEventArgs e)

Result Type: void

Parameters

TypeName
MouseButtonEventArgse

OnMouseDown(MouseButtonEventArgs)

protected void OnMouseDown(MouseButtonEventArgs e)

Result Type: void

Parameters

TypeName
MouseButtonEventArgse

OnMouseMove(MouseEventArgs)

protected void OnMouseMove(MouseEventArgs e)

Result Type: void

Parameters

TypeName
MouseEventArgse

OnMouseUp(MouseButtonEventArgs)

protected void OnMouseUp(MouseButtonEventArgs e)

Result Type: void

Parameters

TypeName
MouseButtonEventArgse

OnMouseWheel(MouseWheelEventArgs)

protected void OnMouseWheel(MouseWheelEventArgs e)

Result Type: void

Parameters

TypeName
MouseWheelEventArgse

PrepareContentCore(GridViewWindow)

protected void PrepareContentCore(GridViewWindow view)

Result Type: void

Parameters

TypeName
GridViewWindowview

PrepareHeaders()

protected void PrepareHeaders()

Result Type: void

Refresh()

Resets data in the TagBites.WinSchedulers.TimeScheduler.DataSource and refreshes the view.

public void Refresh()

Result Type: void

ScrollTo(object)

Scrolls the content within the to the specified task

public void ScrollTo(object task)

Result Type: void

Parameters

TypeName
objecttaskAn representing the task that the content scrolls to.

ScrollTo(DateTime, Alignment)

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

public void ScrollTo(DateTime dateTime, Alignment alignment)

Result Type: void

Parameters

TypeName
DateTimedateTimeThe date time that the content scrolls to.
AlignmentalignmentAlignment of the task relative to its content rectangle.

ScrollTo(DateTime, DateTime)

Scrolls the content within the to the specified interval.

public void ScrollTo(DateTime start, DateTime end)

Result Type: void

Parameters

TypeName
DateTimestartThe date time that the begin of content scrolls to.
DateTimeendThe date time that the end of content scrolls to.

Select(object)

Marks task as the TagBites.WinSchedulers.TimeScheduler.SelectedTask and scroll to it.

public void Select(object task)

Result Type: void

Parameters

TypeName
objecttaskAn representing the task that will be marked as selected.

Events

CustomDrawTask

Occurs when the task is drawn.

public EventHandler<TimeSchedulerCustomDrawObjectEventArgs> CustomDrawTask

Result Type: EventHandler<TimeSchedulerCustomDrawObjectEventArgs>

CustomDrawTaskBackground

Occurs when the background of the task is drawn.

public EventHandler<TimeSchedulerCustomDrawObjectEventArgs> CustomDrawTaskBackground

Result Type: EventHandler<TimeSchedulerCustomDrawObjectEventArgs>

MouseMove

Occurs when the mouse pointer moves while over this element.

public EventHandler<MouseEventArgs> MouseMove

Result Type: EventHandler<MouseEventArgs>

OrientationChanged

Occurs when the orientation of control is changed.

public EventHandler OrientationChanged

Result Type: EventHandler

ResourceHeaderClick

Occurs when the user clicks the header of resource.

public EventHandler<TimeSchedulerResourceHeaderEventArgs> ResourceHeaderClick

Result Type: EventHandler<TimeSchedulerResourceHeaderEventArgs>

ResourceHeaderDoubleClick

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

public EventHandler<TimeSchedulerResourceHeaderEventArgs> ResourceHeaderDoubleClick

Result Type: EventHandler<TimeSchedulerResourceHeaderEventArgs>

SelectedTasksChanged

Occurs after the selected tasks are changed.

public EventHandler SelectedTasksChanged

Result Type: EventHandler

SettingsMenuResolved

Occurs when the menu of the settings is resolved.

public EventHandler<TimeSettingsMenuResolvedEventArgs> SettingsMenuResolved

Result Type: EventHandler<TimeSettingsMenuResolvedEventArgs>

TaskClick

Occurs when the user clicks the task.

public EventHandler<TimeSchedulerTaskEventArgs> TaskClick

Result Type: EventHandler<TimeSchedulerTaskEventArgs>

TaskDoubleClick

Occurs when the user double-clicks the task.

public EventHandler<TimeSchedulerTaskEventArgs> TaskDoubleClick

Result Type: EventHandler<TimeSchedulerTaskEventArgs>

TaskMoved

Occurs when the task is moved.

public EventHandler<TimeSchedulerTaskMovedEventArgs> TaskMoved

Result Type: EventHandler<TimeSchedulerTaskMovedEventArgs>

TaskMoving

Occurs when the task is moving.

public EventHandler<TimeSchedulerTaskMovingEventArgs> TaskMoving

Result Type: EventHandler<TimeSchedulerTaskMovingEventArgs>

TaskSelected

Occurs after the task is selected.

public EventHandler<TimeSchedulerTaskEventArgs> TaskSelected

Result Type: EventHandler<TimeSchedulerTaskEventArgs>