Represents the table in SchedulerDayViewElement where the non-AllDay appointments reside.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class DayViewAppointmentsTable : SchedulerCellContainer, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerCellContainerDayViewAppointmentsTable...
Implements:
Inherited Members
Constructors
Creates the day-view appointment table and starts its timer for refreshing the current-time indicator.
public DayViewAppointmentsTable(RadScheduler scheduler, SchedulerView view, DayViewAppointmentsArea area)
The scheduler that owns the table.
viewSchedulerViewThe day view whose cells and appointments are displayed.
areaDayViewAppointmentsAreaThe appointments area that contains this table.
Properties
Gets the DayViewAppointmentsArea element that owns the current appointments table instance.
public DayViewAppointmentsArea Area { get; }
If there is an active drag operation and the visual feedback is currently inside the table, returns the visual feedback element. Otherwise returns null.
public DragFeedbackElement Feedback { get; }
Methods
Arranges the appointments in the table.
protected virtual void ArrangeAppointments(SizeF finalSize)
The size passed to the ArrangeOverride method.
Arranges the cell elements in the table.
protected virtual void ArrangeCells(SizeF finalSize)
The size passed to the ArrangeOverride method.
Arranges cells, appointments, and drag feedback for the active day view; inactive ungrouped views and month view delegate to the base layout.
Creates per-day appointment elements, splitting multi-day events and associating overlapping elements for layout.
protected override IEnumerable<AppointmentElement> CreateAppointmentElements()
IEnumerable<AppointmentElement>
The appointment elements displayed in the table.
Overrides:
Creates one scheduler cell for each combination of visible day and ruler row.
protected override IEnumerable<SchedulerCellElement> CreateCellElements()
IEnumerable<SchedulerCellElement>
The day-view time-slot cells.
Overrides:
Stops and disposes the timer that refreshes the current-time indicator before releasing base resources.
protected override void DisposeManagedResources()
Overrides:
Draws the current time marker.
protected virtual void DrawCurrentTimeIndicator(DateTime currentDateTime, SchedulerCellElement todayCell, IGraphics graphics)
The current date and time.
todayCellSchedulerCellElementThe cell which should contain the marker.
graphicsIGraphicsThe graphichs to draw to.
Calculates and returns the arrange rectangle of the drag feedback element.
protected virtual RectangleF GetFeedbackElementArrangeRectangle(DragFeedbackElement feedback, SizeF finalSize)
The feedback element.
finalSizeSizeFThe arrange size of the table.
Returns:The calculated arrange rectangle.
Gets a time rounded to the cells of the day view table.
Gets the SchedulerCellElement elements that are currently in the visible area of the table.
Assigns the visual class used to style the appointments table.
protected override void InitializeFields()
Overrides:
Measures the table to span the day view's ruler rows, falling back to the base measurement when its area or day-view configuration is unavailable.
Draws the current-time indicator over a cell when the ruler enables it and the current time falls within that cell.
Scrolls the table with a single row up or down.
public void Scroll(bool up)
If [true] the table is scrolled up, otherwise it is scrolled down.
Scrolls the table to a specified time of the day.
Scrolls the table to the start of the working hours.
public void ScrollToWorkHours()
Refreshes cell dates, selection and work-time state, and rebuilds the date-to-cell lookup used by the table.
protected override void UpdateCellsCore()
Overrides: