ClassMonthCellElement
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.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class MonthCellElement : SchedulerCellElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ISchedulerRecyclableElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementSchedulerCellElementMonthCellElement
Implements:
Inherited Members
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
scheduler
The RadScheduler control that owns this cell element.
view
The SchedulerView that contains this cell element.
Fields
ArrowImageProperty
Identifies the ArrowImage dependency property.
DrawLineProperty
Identifies the DrawLine dependency property.
HeaderHeightProperty
Identifies the HeaderHeight dependency property.
Declaration
public static RadProperty HeaderHeightProperty
Field Value
LineColorProperty
Identifies the LineColor dependency property.
Properties
ArrowImage
Gets or sets the image displayed as the overflow arrow indicator when the cell contains more appointments than can be shown.
Declaration
[Browsable(false)]
[VsbBrowsable(true)]
[TypeConverter(typeof(ImageTypeConverter))]
public Image ArrowImage { get; set; }
Property Value
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
Overrides
DrawLine
Gets or sets a value indicating whether a line should be drawn above the overflow arrow indicator in this month cell.
Declaration
[Browsable(false)]
[VsbBrowsable(true)]
public bool DrawLine { get; set; }
Property Value
Header
Gets the header cell element that displays the date information at the top of this month cell.
Declaration
[Browsable(false)]
public SchedulerHeaderCellElement Header { get; }
Property Value
HeaderHeight
Gets or sets the height in pixels of the header section that displays the date information within this month cell element.
Declaration
[Browsable(true)]
public int HeaderHeight { get; set; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the child elements within this month cell, positioning the header element at the top with the specified header height.
MeasureOverride(SizeF)
Measures the size required by this month cell element and its header, determining the space needed for proper layout.
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
e
The 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
e
The RadPropertyChangedEventArgs instance containing the event data.
Overrides
PaintElement(IGraphics, float, 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
graphics
The graphics context used for painting.
angle
The rotation angle for the painted content.
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()