Class DayViewAppointmentsTable
Represents the table in Scheduler
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class DayViewAppointmentsTable : SchedulerCellContainer, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
DayViewAppointmentsTable(RadScheduler, SchedulerView, DayViewAppointmentsArea)
Declaration
public DayViewAppointmentsTable(RadScheduler scheduler, SchedulerView view, DayViewAppointmentsArea area)
Parameters
Rad
|
Scheduler
|
Day
|
Properties
Area
Gets the Day
Declaration
public DayViewAppointmentsArea Area { get; }
Property Value
Feedback
If there is an active drag operation and the visual feedback is currently inside the table, returns the visual feedback element. Otherwise returns null.
Declaration
public DragFeedbackElement Feedback { get; }
Property Value
Methods
ArrangeAppointments(SizeF)
Arranges the appointments in the table.
Declaration
protected virtual void ArrangeAppointments(SizeF finalSize)
Parameters
System. The size passed to the ArrangeOverride method. |
ArrangeCells(SizeF)
Arranges the cell elements in the table.
Declaration
protected virtual void ArrangeCells(SizeF finalSize)
Parameters
System. The size passed to the ArrangeOverride method. |
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
CreateAppointmentElements()
Declaration
protected override IEnumerable<AppointmentElement> CreateAppointmentElements()
Returns
System.
|
Overrides
CreateCellElements()
Declaration
protected override IEnumerable<SchedulerCellElement> CreateCellElements()
Returns
System.
|
Overrides
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
DrawCurrentTimeIndicator(DateTime, SchedulerCellElement, IGraphics)
Draws the current time marker.
Declaration
protected virtual void DrawCurrentTimeIndicator(DateTime currentDateTime, SchedulerCellElement todayCell, IGraphics graphics)
Parameters
System. The current date and time. |
Scheduler The cell which should contain the marker. |
IGraphics
graphics
The graphichs to draw to. |
GetFeedbackElementArrangeRectangle(DragFeedbackElement, SizeF)
Calculates and returns the arrange rectangle of the drag feedback element.
Declaration
protected virtual RectangleF GetFeedbackElementArrangeRectangle(DragFeedbackElement feedback, SizeF finalSize)
Parameters
Drag The feedback element. |
System. The arrange size of the table. |
Returns
System. The calculated arrange rectangle. |
GetItemHeight(DateTime, DateTime)
Gets the height that an appointment with the specified start and end dates would have.
Declaration
public float GetItemHeight(DateTime start, DateTime end)
Parameters
System. The start date. |
System. The end date. |
Returns
System. The calculated height. |
GetItemLocationInTable(DateTime, SizeF)
Gets the the location in the table that an appointment with the specified date would have.
Declaration
public PointF GetItemLocationInTable(DateTime date, SizeF finalSize)
Parameters
System. The specified date. |
System. The size of the table. |
Returns
System. The location in the table. |
GetRulerRoundedDateTime(DateTime, Boolean)
Gets a time rounded to the cells of the day view table.
Declaration
protected virtual DateTime GetRulerRoundedDateTime(DateTime time, bool roundUp)
Parameters
System. The time to round. |
System. If true time will rounded to the end value of the cell that would contain the given time, otherwise it will be rounded to the cell start value. |
Returns
System.
|
GetVisibleCells()
Gets the Scheduler
Declaration
public List<SchedulerCellElement> GetVisibleCells()
Returns
System.
|
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
PaintChild(RadElement, IGraphics, Rectangle, Single, SizeF, Boolean)
Declaration
protected override void PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale, bool useRelativeTransformation)
Parameters
Rad
|
IGraphics
graphics
|
System.
|
System.
|
System.
|
System.
|
Overrides
Scroll(Boolean)
Scrolls the table with a single row up or down.
Declaration
public void Scroll(bool up)
Parameters
System. If [true] the table is scrolled up, otherwise it is scrolled down. |
ScrollToTime(TimeSpan)
Scrolls the table to a specified time of the day.
Declaration
public void ScrollToTime(TimeSpan time)
Parameters
System. The time of the day. |
ScrollToWorkHours()
Scrolls the table to the start of the working hours.
Declaration
public void ScrollToWorkHours()
UpdateCellsCore()
Declaration
protected override void UpdateCellsCore()