Class MonthViewAreaElement
Represents the area in SchedulerMonthViewElement which contains the cells for each day and the appointments.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class MonthViewAreaElement : SchedulerCellContainer, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
MonthViewAreaElement(RadScheduler, SchedulerView, SchedulerMonthViewElement)
Initializes a new instance of the MonthViewAreaElement class.
Declaration
public MonthViewAreaElement(RadScheduler scheduler, SchedulerView view, SchedulerMonthViewElement monthViewElement)
Parameters
RadScheduler
scheduler
The scheduler this header belongs to. |
SchedulerView
view
The view this header belongs to. |
SchedulerMonthViewElement
monthViewElement
The month view this header belongs to. |
Fields
AppointmentHeightProperty
CellOverflowArrowHeightProperty
Properties
AppointmentHeight
Gets or sets the default height of the appointments.
Declaration
public int AppointmentHeight { get; set; }
Property Value
System.Int32
The default height of the appointments. |
AppointmentsComparer
Gets or sets the comparer of the Appointments collection
Declaration
public IComparer<AppointmentElement> AppointmentsComparer { get; set; }
Property Value
System.Collections.Generic.IComparer<AppointmentElement>
|
CellOverflowArrowHeight
Gets or sets the height of the overflow arrow which appears in a MonthCellElement when the appointments overflow it.
Declaration
public int CellOverflowArrowHeight { get; set; }
Property Value
System.Int32
|
CellScrollBars
Gets the scrollbars that appear at the end of each row when some of the cells in that row has more appointments than can be displayed.
Declaration
public RadScrollBarElement[] CellScrollBars { get; protected set; }
Property Value
RadScrollBarElement[]
|
Feedback
If there is an active drag operation and the visual feedback is currently inside the area, returns the visual feedback element. Otherwise returns null.
Declaration
public DragFeedbackElement Feedback { get; }
Property Value
DragFeedbackElement
|
Methods
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
GetCellForDate(DateTime)
Gets the SchedulerCellElement that contains a given date.
Declaration
public SchedulerCellElement GetCellForDate(DateTime date)
Parameters
System.DateTime
date
The date. |
Returns
SchedulerCellElement
The cell that contains the date. |
GetContentCell(Int32, Int32)
Gets the MonthCellElement on a given position.
Declaration
public MonthCellElement GetContentCell(int row, int column)
Parameters
System.Int32
row
The row of the requested cell. |
System.Int32
column
The column of the requested cell. |
Returns
MonthCellElement
The requested cell. |
GetDayNumberAsTextFromCalendar(DateTime)
Declaration
protected virtual string GetDayNumberAsTextFromCalendar(DateTime date)
Parameters
System.DateTime
date
|
Returns
System.String
|
GetFeedbackElementArrangeRectangle(SizeF)
Calculates and returns the arrange rectangle of the drag feedback element.
Declaration
protected virtual RectangleF GetFeedbackElementArrangeRectangle(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The arrange size of the area. |
Returns
System.Drawing.RectangleF
The calculated arrange rectangle. |
InitializeAppointments()
Declaration
public override void InitializeAppointments()
Overrides
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
OnCellScrollBarValueChanged(Object, EventArgs)
Called when some of the scrollbars that appear in the last cell of a row is scrolled.
Declaration
protected virtual void OnCellScrollBarValueChanged(object sender, EventArgs e)
Parameters
System.Object
sender
The sender scrollbar. |
System.EventArgs
e
The event arguments. |
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
RefreshCellScrollBars()
Updates the scrollbars that appear in the last cell of a row when this row has more appointments than it can fit.
Declaration
protected virtual void RefreshCellScrollBars()
UpdateCellsCore()
Declaration
protected override void UpdateCellsCore()