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.IGridViewDiagnosticInfoInheritance: Panel → GridViewControl → TimeScheduler
Constructors
Section titled “Constructors”TimeScheduler()
Section titled “TimeScheduler()”Initializes a new instance of the TimeScheduler class.
public TimeScheduler()Properties
Section titled “Properties”BehaviorOptions
Section titled “BehaviorOptions”Gets the set of the behavior options.
public TimeSchedulerBehaviorOptions BehaviorOptions { get; }Property Value
Section titled “Property Value”A TimeSchedulerBehaviorOptions object representing set of the behavior options.
DataSource
Section titled “DataSource”Gets or sets data source for loading data.
public ITimeSchedulerDataSource DataSource { get; set; }Property Value
Section titled “Property Value”A ITimeSchedulerDataSource object representing data source containing mechanism for loading data.
HorizontalScroller
Section titled “HorizontalScroller”protected internal virtual GridViewScroller HorizontalScroller { get; }Property Value
Section titled “Property Value”ResourceScroller
Section titled “ResourceScroller”Gets a resource scroll element.
public TimeSchedulerResourceScroller ResourceScroller { get; }Property Value
Section titled “Property Value”A TimeSchedulerResourceScroller object representing a resource scroll element.
SelectedTask
Section titled “SelectedTask”Gets or sets the selected task.
public object SelectedTask { get; set; }Property Value
Section titled “Property Value”An Object representing the selected task.
SelectedTasks
Section titled “SelectedTasks”Gets the collection of selected tasks.
public IList<object> SelectedTasks { get; }Property Value
Section titled “Property Value”An IList representing the collection of selected tasks.
TimeScroller
Section titled “TimeScroller”Gets a time scroll element.
public TimeSchedulerTimeScroller TimeScroller { get; }Property Value
Section titled “Property Value”A TimeSchedulerTimeScroller object representing a time scroll element.
VerticalScroller
Section titled “VerticalScroller”protected internal virtual GridViewScroller VerticalScroller { get; }Property Value
Section titled “Property Value”VerticalTimeLine
Section titled “VerticalTimeLine”Gets or sets a value that indicates whether a time line is vertical.
public bool VerticalTimeLine { get; set; }Property Value
Section titled “Property Value”true, if a time line is vertical; otherwise, false
Gets a view storing data for control.
public TimeSchedulerDataSourceView View { get; }Property Value
Section titled “Property Value”A TimeSchedulerDataSourceView representing object storing data for control.
ViewOptions
Section titled “ViewOptions”Gets the set of the view options.
public TimeSchedulerViewOptions ViewOptions { get; }Property Value
Section titled “Property Value”A TimeSchedulerViewOptions object representing set of the view options.
VisibleDateTimeInterval
Section titled “VisibleDateTimeInterval”Gets or sets the interval visible in the content.
public TimeSchedulerInterval VisibleDateTimeInterval { get; set; }Property Value
Section titled “Property Value”A TimeSchedulerInterval representing the interval visible in the content.
Methods
Section titled “Methods”ExportToPng(string, TimeSchedulerExportOptions)
Section titled “ExportToPng(string, TimeSchedulerExportOptions)”Exports the view to a .png file.
public void ExportToPng(string fileName, TimeSchedulerExportOptions options)Parameters
Section titled “Parameters”fileNamestring
The full path of the file.optionsTimeSchedulerExportOptions
GetResourceAtPoint(Point)
Section titled “GetResourceAtPoint(Point)”Returns a resource at the specified point.
public object GetResourceAtPoint(Point point)Parameters
Section titled “Parameters”Returns
Section titled “Returns”An Object representing a resource at the specified point.
GetResourceHeaderAtPoint(Point)
Section titled “GetResourceHeaderAtPoint(Point)”Returns a resource header at the specified point.
public object GetResourceHeaderAtPoint(Point point)Parameters
Section titled “Parameters”Returns
Section titled “Returns”An Object representing a resource at the specified point.
GetResourceIndex(object)
Section titled “GetResourceIndex(object)”Determines the index of a specific resource in the resource collection.
public int GetResourceIndex(object resource)Parameters
Section titled “Parameters”resourceobject
The object to locate in the resource collection.
Returns
Section titled “Returns”The index of resource if found in the resource collection; otherwise, -1.
GetTaskAtPoint(Point)
Section titled “GetTaskAtPoint(Point)”Returns a task at the specified point.
public object GetTaskAtPoint(Point point)Parameters
Section titled “Parameters”Returns
Section titled “Returns”An Object representing a task at the specified point.
GetTaskResourceIndex(object)
Section titled “GetTaskResourceIndex(object)”Determines the index of a task resource in the resource collection.
public int GetTaskResourceIndex(object task)Parameters
Section titled “Parameters”Returns
Section titled “Returns”The index of a task resource if found in the resource collection; otherwise, -1.
OnKeyDown(KeyEventArgs)
Section titled “OnKeyDown(KeyEventArgs)”protected virtual void OnKeyDown(KeyEventArgs e)Parameters
Section titled “Parameters”OnMouseDoubleClick(MouseButtonEventArgs)
Section titled “OnMouseDoubleClick(MouseButtonEventArgs)”Raises the Control.MouseDoubleClick routed event.
protected virtual void OnMouseDoubleClick(MouseButtonEventArgs e)Parameters
Section titled “Parameters”eMouseButtonEventArgs
The event data.
OnMouseDown(MouseButtonEventArgs)
Section titled “OnMouseDown(MouseButtonEventArgs)”protected virtual void OnMouseDown(MouseButtonEventArgs e)Parameters
Section titled “Parameters”OnMouseMove(MouseEventArgs)
Section titled “OnMouseMove(MouseEventArgs)”protected virtual void OnMouseMove(MouseEventArgs e)Parameters
Section titled “Parameters”OnMouseUp(MouseButtonEventArgs)
Section titled “OnMouseUp(MouseButtonEventArgs)”protected virtual void OnMouseUp(MouseButtonEventArgs e)Parameters
Section titled “Parameters”OnMouseWheel(MouseWheelEventArgs)
Section titled “OnMouseWheel(MouseWheelEventArgs)”protected virtual void OnMouseWheel(MouseWheelEventArgs e)Parameters
Section titled “Parameters”OnViewStyleChanged()
Section titled “OnViewStyleChanged()”Raised when style changes.
protected virtual void OnViewStyleChanged()PrepareContentCore(GridViewWindow)
Section titled “PrepareContentCore(GridViewWindow)”Prepares control content with specified columns and rows
protected virtual void PrepareContentCore(GridViewWindow view)Parameters
Section titled “Parameters”viewGridViewWindow
A GridViewWindow that represents the object with columns and rows.
PrepareHeaders()
Section titled “PrepareHeaders()”Prepares control headers.
protected virtual void PrepareHeaders()Refresh()
Section titled “Refresh()”Resets data in the DataSource and refreshes the view.
public virtual void Refresh()ScrollTo(object)
Section titled “ScrollTo(object)”Scrolls the content within the to the specified task
public void ScrollTo(object task)Parameters
Section titled “Parameters”ScrollTo(DateTime, Alignment)
Section titled “ScrollTo(DateTime, Alignment)”Scrolls the content within the to the specified task and alignment.
public void ScrollTo(DateTime dateTime, Alignment alignment)Parameters
Section titled “Parameters”dateTimeDateTime
The date time that the content scrolls to.alignmentAlignment
Alignment of the task relative to its content rectangle.
ScrollTo(DateTime, DateTime)
Section titled “ScrollTo(DateTime, DateTime)”Scrolls the content within the to the specified interval.
public void ScrollTo(DateTime start, DateTime end)Parameters
Section titled “Parameters”startDateTime
The date time that the begin of content scrolls to.endDateTime
The date time that the end of content scrolls to.
Select(object)
Section titled “Select(object)”Marks task as the SelectedTask and scroll to it.
public void Select(object task)Parameters
Section titled “Parameters”Events
Section titled “Events”CustomDrawTask
Section titled “CustomDrawTask”Occurs when the task is drawn.
public EventHandler<TimeSchedulerCustomDrawObjectEventArgs> CustomDrawTaskEvent Type
Section titled “Event Type”EventHandler<TimeSchedulerCustomDrawObjectEventArgs>
CustomDrawTaskBackground
Section titled “CustomDrawTaskBackground”Occurs when the background of the task is drawn.
public EventHandler<TimeSchedulerCustomDrawObjectEventArgs> CustomDrawTaskBackgroundEvent Type
Section titled “Event Type”EventHandler<TimeSchedulerCustomDrawObjectEventArgs>
MouseMove
Section titled “MouseMove”Occurs when the mouse pointer moves while over this element.
public EventHandler<MouseEventArgs> MouseMoveEvent Type
Section titled “Event Type”OrientationChanged
Section titled “OrientationChanged”Occurs when the orientation of control is changed.
public EventHandler OrientationChangedEvent Type
Section titled “Event Type”ResourceHeaderClick
Section titled “ResourceHeaderClick”Occurs when the user clicks the header of resource.
public EventHandler<TimeSchedulerResourceHeaderEventArgs> ResourceHeaderClickEvent Type
Section titled “Event Type”EventHandler<TimeSchedulerResourceHeaderEventArgs>
ResourceHeaderDoubleClick
Section titled “ResourceHeaderDoubleClick”Occurs when the user double-clicks the header of resource.
public EventHandler<TimeSchedulerResourceHeaderEventArgs> ResourceHeaderDoubleClickEvent Type
Section titled “Event Type”EventHandler<TimeSchedulerResourceHeaderEventArgs>
SelectedTasksChanged
Section titled “SelectedTasksChanged”Occurs after the selected tasks are changed.
public EventHandler SelectedTasksChangedEvent Type
Section titled “Event Type”SettingsMenuResolved
Section titled “SettingsMenuResolved”Occurs when the menu of the settings is resolved.
public EventHandler<TimeSettingsMenuResolvedEventArgs> SettingsMenuResolvedEvent Type
Section titled “Event Type”EventHandler<TimeSettingsMenuResolvedEventArgs>
TaskClick
Section titled “TaskClick”Occurs when the user clicks the task.
public EventHandler<TimeSchedulerTaskEventArgs> TaskClickEvent Type
Section titled “Event Type”EventHandler<TimeSchedulerTaskEventArgs>
TaskDoubleClick
Section titled “TaskDoubleClick”Occurs when the user double-clicks the task.
public EventHandler<TimeSchedulerTaskEventArgs> TaskDoubleClickEvent Type
Section titled “Event Type”EventHandler<TimeSchedulerTaskEventArgs>
TaskMoved
Section titled “TaskMoved”Occurs when the task is moved.
public EventHandler<TimeSchedulerTaskMovedEventArgs> TaskMovedEvent Type
Section titled “Event Type”EventHandler<TimeSchedulerTaskMovedEventArgs>
TaskMoving
Section titled “TaskMoving”Occurs when the task is moving.
public EventHandler<TimeSchedulerTaskMovingEventArgs> TaskMovingEvent Type
Section titled “Event Type”EventHandler<TimeSchedulerTaskMovingEventArgs>
TaskSelected
Section titled “TaskSelected”Occurs after the task is selected.
public EventHandler<TimeSchedulerTaskEventArgs> TaskSelectedEvent Type
Section titled “Event Type”EventHandler<TimeSchedulerTaskEventArgs>
TimeClick
Section titled “TimeClick”Occurs when the user clicks an empty area.
public EventHandler<TimeSchedulerEventArgs> TimeClick