Class TimelineAppointmentsPresenter
Represents the appointments area in SchedulerTimelineViewElement.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class TimelineAppointmentsPresenter : SchedulerCellContainer, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
TimelineAppointmentsPresenter(RadScheduler, SchedulerView, SchedulerTimelineViewElement)
Creates a new instance of the TimelineAppointmentsPresenter class.
Declaration
public TimelineAppointmentsPresenter(RadScheduler scheduler, SchedulerView view, SchedulerTimelineViewElement timelineViewElement)
Parameters
RadScheduler
scheduler
The RadScheduler this presenter belongs to. |
SchedulerView
view
The SchedulerView this presenter belongs to. |
SchedulerTimelineViewElement
timelineViewElement
The SchedulerTimelineViewElement this presenter belongs to. |
Fields
AppointmentHeightProperty
Properties
AppointmentHeight
Gets or sets the appointment's height.
Declaration
public int AppointmentHeight { get; set; }
Property Value
System.Int32
|
Feedback
If there is an active drag operation and the visual feedback is currently inside the presenter, returns the visual feedback element. Otherwise returns null.
Declaration
public DragFeedbackElement Feedback { get; }
Property Value
DragFeedbackElement
|
ScrollOffset
Gets or sets the vertical scroll offset of the presenter.
Declaration
public int ScrollOffset { get; set; }
Property Value
System.Int32
|
TimelineViewElement
Gets the SchedulerTimelineViewElement that owns this presenter.
Declaration
public SchedulerTimelineViewElement TimelineViewElement { get; }
Property Value
SchedulerTimelineViewElement
|
Methods
ArrangeAppointments(SizeF)
Arranges the appointments in the presenter.
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 presenter.
Declaration
protected virtual void ArrangeCells(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The size passed to the ArrangeOverride method. |
ArrangeFeedback()
Arranges the drag feedback element.
Declaration
protected virtual void ArrangeFeedback()
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
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
ResolveOverlappingAppointments(SizeF)
Initially the appointments are all aranged in a single row and this method is called to resolve any overlapping appointment.
Declaration
protected virtual void ResolveOverlappingAppointments(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Scroll(Boolean)
Scrolls the presenter with a single row up or down.
Declaration
public void Scroll(bool up)
Parameters
System.Boolean
up
If [true] the presenter is scrolled up, otherwise it is scrolled down. |
UpdateCellsCore()
Declaration
protected override void UpdateCellsCore()