ClassDayViewAppointmentsTable
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
DayViewAppointmentsTable(RadScheduler, SchedulerView, DayViewAppointmentsArea)
Declaration
public DayViewAppointmentsTable(RadScheduler scheduler, SchedulerView view, DayViewAppointmentsArea area)
Parameters
scheduler
view
area
Properties
Area
Gets the DayViewAppointmentsArea element that owns the current appointments table instance.
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
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
finalSize
The size passed to the ArrangeOverride method.
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CreateAppointmentElements()
Creates AppointmentElement elements which will be used in this container.
Declaration
protected override IEnumerable<AppointmentElement> CreateAppointmentElements()
Returns
IEnumerable<AppointmentElement>
A collection of the newly created appointment elements.
Overrides
CreateCellElements()
Creates SchedulerCellElement elements which will be used in this container.
Declaration
protected override IEnumerable<SchedulerCellElement> CreateCellElements()
Returns
IEnumerable<SchedulerCellElement>
A collection of the newly created cells.
Overrides
DisposeManagedResources()
Disposes of managed resources including cached images and SVG images when the element is being disposed.
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
currentDateTime
The current date and time.
todayCell
The cell which should contain the marker.
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
feedback
The feedback element.
finalSize
The arrange size of the table.
Returns
The calculated arrange rectangle.
GetItemHeight(DateTime, DateTime)
Gets the height that an appointment with the specified start and end dates would have.
GetItemLocationInTable(DateTime, SizeF)
Gets the the location in the table that an appointment with the specified date would have.
GetRulerRoundedDateTime(DateTime, bool)
Gets a time rounded to the cells of the day view table.
Declaration
protected virtual DateTime GetRulerRoundedDateTime(DateTime time, bool roundUp)
Parameters
time
The time to round.
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
GetVisibleCells()
Gets the SchedulerCellElement elements that are currently in the visible area of the table.
Declaration
public List<SchedulerCellElement> GetVisibleCells()
Returns
List<SchedulerCellElement>
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)
Declaration
protected override void PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale, bool useRelativeTransformation)
Parameters
child
graphics
clipRectange
angle
scale
useRelativeTransformation
Overrides
Scroll(bool)
Scrolls the table with a single row up or down.
Declaration
public void Scroll(bool up)
Parameters
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
time
The time of the day.
ScrollToWorkHours()
Scrolls the table to the start of the working hours.
Declaration
public void ScrollToWorkHours()
UpdateCellsCore()
Overrideable method called by UpdateCells().
Declaration
protected override void UpdateCellsCore()
Overrides