Class DayViewAppointmentsTable
Represents the table in SchedulerDayViewElement where the non-AllDay appointments reside.
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, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
DayViewAppointmentsTable(RadScheduler, SchedulerView, DayViewAppointmentsArea)
Declaration
public DayViewAppointmentsTable(RadScheduler scheduler, SchedulerView view, DayViewAppointmentsArea area)
Parameters
|
RadScheduler
scheduler
|
|
SchedulerView
view
|
|
DayViewAppointmentsArea
area
|
Properties
Area
Gets the DayViewAppointmentsArea element that owns the current appointments table instance.
Declaration
public DayViewAppointmentsArea Area { get; }
Property Value
|
DayViewAppointmentsArea
|
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
|
DragFeedbackElement
|
Methods
ArrangeAppointments(SizeF)
Arranges the appointments in the table.
Declaration
protected virtual void ArrangeAppointments(SizeF finalSize)
Parameters
|
System.Drawing.SizeF
finalSize
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.Drawing.SizeF
finalSize
The size passed to the ArrangeOverride method. |
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
|
System.Drawing.SizeF
finalSize
|
Returns
|
System.Drawing.SizeF
|
Overrides
CreateAppointmentElements()
Declaration
protected override IEnumerable<AppointmentElement> CreateAppointmentElements()
Returns
|
System.Collections.Generic.IEnumerable<AppointmentElement>
|
Overrides
CreateCellElements()
Declaration
protected override IEnumerable<SchedulerCellElement> CreateCellElements()
Returns
|
System.Collections.Generic.IEnumerable<SchedulerCellElement>
|
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.DateTime
currentDateTime
The current date and time. |
|
SchedulerCellElement
todayCell
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
|
DragFeedbackElement
feedback
The feedback element. |
|
System.Drawing.SizeF
finalSize
The arrange size of the table. |
Returns
|
System.Drawing.RectangleF
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.DateTime
start
The start date. |
|
System.DateTime
end
The end date. |
Returns
|
System.Single
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.DateTime
date
The specified date. |
|
System.Drawing.SizeF
finalSize
The size of the table. |
Returns
|
System.Drawing.PointF
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.DateTime
time
The time to round. |
|
System.Boolean
roundUp
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.DateTime
|
GetVisibleCells()
Gets the SchedulerCellElement elements that are currently in the visible area of the table.
Declaration
public List<SchedulerCellElement> GetVisibleCells()
Returns
|
System.Collections.Generic.List<SchedulerCellElement>
|
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
|
System.Drawing.SizeF
availableSize
|
Returns
|
System.Drawing.SizeF
|
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
|
RadElement
child
|
|
IGraphics
graphics
|
|
System.Drawing.Rectangle
clipRectange
|
|
System.Single
angle
|
|
System.Drawing.SizeF
scale
|
|
System.Boolean
useRelativeTransformation
|
Overrides
Scroll(Boolean)
Scrolls the table with a single row up or down.
Declaration
public void Scroll(bool up)
Parameters
|
System.Boolean
up
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.TimeSpan
time
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()