Class MonthCellElement
Represents a cell element in the month view of the scheduler that displays date information and appointments for a specific day within the monthly calendar grid.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class MonthCellElement : SchedulerCellElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ISchedulerRecyclableElement
Constructors
MonthCellElement(RadScheduler, SchedulerView)
Initializes a new instance of the MonthCellElement class with the specified scheduler control and view configuration, creating the header element and setting up event bindings.
Declaration
public MonthCellElement(RadScheduler scheduler, SchedulerView view)
Parameters
RadScheduler
scheduler
The RadScheduler control that owns this cell element. |
SchedulerView
view
The SchedulerView that contains this cell element. |
Fields
ArrowImageProperty
Identifies the ArrowImage dependency property.
Declaration
public static RadProperty ArrowImageProperty
Field Value
RadProperty
|
DrawLineProperty
Identifies the DrawLine dependency property.
Declaration
public static RadProperty DrawLineProperty
Field Value
RadProperty
|
HeaderHeightProperty
Identifies the HeaderHeight dependency property.
Declaration
public static RadProperty HeaderHeightProperty
Field Value
RadProperty
|
LineColorProperty
Identifies the LineColor dependency property.
Declaration
public static RadProperty LineColorProperty
Field Value
RadProperty
|
Properties
ArrowImage
Gets or sets the image displayed as the overflow arrow indicator when the cell contains more appointments than can be shown.
Declaration
[VsbBrowsable(true)]
public Image ArrowImage { get; set; }
Property Value
System.Drawing.Image
|
Date
Gets or sets the date represented by this month cell element, automatically synchronizing the header display with the new date value.
Declaration
public override DateTime Date { get; }
Property Value
System.DateTime
|
Overrides
DrawLine
Gets or sets a value indicating whether a line should be drawn above the overflow arrow indicator in this month cell.
Declaration
[VsbBrowsable(true)]
public bool DrawLine { get; set; }
Property Value
System.Boolean
|
Header
Gets the header cell element that displays the date information at the top of this month cell.
Declaration
public SchedulerHeaderCellElement Header { get; }
Property Value
SchedulerHeaderCellElement
|
HeaderHeight
Gets or sets the height in pixels of the header section that displays the date information within this month cell element.
Declaration
[RadPropertyDefaultValue("HeaderHeight", typeof(MonthCellElement))]
public int HeaderHeight { get; set; }
Property Value
System.Int32
|
LineColor
Gets or sets the color of the line drawn above the overflow arrow indicator when DrawLine is enabled.
Declaration
[VsbBrowsable(true)]
public Color LineColor { get; set; }
Property Value
System.Drawing.Color
|
Overflown
Gets or sets a value indicating whether the cell overflow button should be displayed when the cell contains more appointments than can be shown in its visible area.
Declaration
public bool Overflown { get; set; }
Property Value
System.Boolean
|
Methods
ArrangeOverride(SizeF)
Arranges the child elements within this month cell, positioning the header element at the top with the specified header height.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final area within the parent that this element should use to arrange itself and its children. |
Returns
System.Drawing.SizeF
The actual size used by the element. |
Overrides
MeasureOverride(SizeF)
Measures the size required by this month cell element and its header, determining the space needed for proper layout.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
The available size that a parent element can allocate for this element. |
Returns
System.Drawing.SizeF
The desired size of this element. |
Overrides
OnMouseDown(MouseEventArgs)
Handles mouse down events, detecting clicks on the overflow button area and triggering the appropriate overflow behavior.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property change notifications, invalidating the element when the text property changes to trigger a repaint.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
The RadPropertyChangedEventArgs instance containing the event data. |
Overrides
PaintElement(IGraphics, Single, SizeF)
Renders the month cell element, drawing the overflow indicator and line when the cell contains more appointments than can be displayed.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
The graphics context used for painting. |
System.Single
angle
The rotation angle for the painted content. |
System.Drawing.SizeF
scale
The scale factor for the painted content. |
Overrides
SyncHeader()
Synchronizes the header element's date property with the current date of this month cell element.
Declaration
public void SyncHeader()