Class DayViewAllDayHeader
Represent the area in SchedulerDayViewElement where all day appointments reside.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class DayViewAllDayHeader : SchedulerCellContainer, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
DayViewAllDayHeader(RadScheduler, SchedulerView, SchedulerDayViewElement)
Initializes a new instance of the DayViewAllDayHeader class.
Declaration
public DayViewAllDayHeader(RadScheduler scheduler, SchedulerView view, SchedulerDayViewElement dayViewElement)
Parameters
RadScheduler
scheduler
The scheduler. |
SchedulerView
view
The view. |
SchedulerDayViewElement
dayViewElement
The day view element. |
Fields
HeaderHeightProperty
MaxHeaderHeightProperty
Properties
DayViewElement
Gets the SchedulerDayViewElement that this header belongs to.
Declaration
public SchedulerDayViewElement DayViewElement { get; }
Property Value
SchedulerDayViewElement
|
Feedback
If there is an active drag operation and the visual feedback is currently inside the header, returns the visual feedback element. Otherwise returns null.
Declaration
public DragFeedbackElement Feedback { get; }
Property Value
DragFeedbackElement
|
HeaderHeight
Specifies the initial height of the header. This will also be the height of the appointments in case AutoSizeAppointments is [false]
Declaration
public int HeaderHeight { get; set; }
Property Value
System.Int32
|
MaxHeaderHeight
Specifies the maximum height of the header before the scrollbar appears.
Declaration
public int MaxHeaderHeight { get; set; }
Property Value
System.Int32
|
ScrollBar
Gets the scrollbar of the header.
Declaration
public RadScrollBarElement ScrollBar { get; }
Property Value
RadScrollBarElement
|
Table
Gets the DayViewAppointmentsTable that is displayed in the same view as the header.
Declaration
public DayViewAppointmentsTable Table { get; }
Property Value
DayViewAppointmentsTable
|
Methods
ArrangeAppointments(SizeF)
Arranges the appointments in the header.
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 header.
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
CalculateAppointmentBounds()
Calculates the size of the bounding rectangle of all appointment elements within the header.
Declaration
public virtual SizeF CalculateAppointmentBounds()
Returns
System.Drawing.SizeF
The size of the bounding rectangle. |
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
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
GetFeedbackElementArrangeRectangle(SizeF)
Calculates and returns the arrange rectangle of the drag feedback element.
Declaration
protected virtual RectangleF GetFeedbackElementArrangeRectangle(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
The available size within the header. |
Returns
System.Drawing.RectangleF
The calculated arrange rectangle. |
GetLeftCornerCell()
Gets the cell above the day view ruler.
Declaration
public SchedulerHeaderCellElement GetLeftCornerCell()
Returns
SchedulerHeaderCellElement
The cell. |
GetRightCornerCell()
Gets the cell above the DayViewAppointmentsTable scrollbar.
Declaration
public SchedulerHeaderCellElement GetRightCornerCell()
Returns
SchedulerHeaderCellElement
The cell. |
GetVerticalScrollValue()
Gets the vertical scroll offset of the all day area.
Declaration
protected virtual float GetVerticalScrollValue()
Returns
System.Single
If the scheduler is grouped, returns the value of the scrollbar in the last child view, otherwise returns the value of the ScrollBar if current header. |
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
SetCornerCellsVisibility(Boolean)
Shows or hides the corner cells (the ones above the rulers and the DayViewAppointmentsArea scrollbar).
Declaration
public void SetCornerCellsVisibility(bool visible)
Parameters
System.Boolean
visible
[true] if corner cells should be visible, [false] otherwise. |
UpdateCellsCore()
Declaration
protected override void UpdateCellsCore()
Overrides
UpdateScrollbar(Single, Single)
Updates the scrollbar range given the total height of the appointments and the available height in the header.
Declaration
protected virtual void UpdateScrollbar(float appointmentHeight, float availableHeight)
Parameters
System.Single
appointmentHeight
The total height of the appointments. |
System.Single
availableHeight
The available height. |