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.
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
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.
public MonthCellElement(RadScheduler scheduler, SchedulerView view)
The RadScheduler control that owns this cell element.
viewSchedulerViewThe SchedulerView that contains this cell element.
Fields
Identifies the ArrowImage dependency property.
public static RadProperty ArrowImageProperty
Identifies the DrawLine dependency property.
public static RadProperty DrawLineProperty
Identifies the HeaderHeight dependency property.
public static RadProperty HeaderHeightProperty
Identifies the LineColor dependency property.
public static RadProperty LineColorProperty
Properties
Gets or sets the image displayed as the overflow arrow indicator when the cell contains more appointments than can be shown.
[Browsable(false)]
[VsbBrowsable(true)]
[TypeConverter(typeof(ImageTypeConverter))]
public Image ArrowImage { get; set; }
Gets or sets the date represented by this month cell element, automatically synchronizing the header display with the new date value.
public override DateTime Date { get; }
Overrides:
Gets or sets a value indicating whether a line should be drawn above the overflow arrow indicator in this month cell.
[Browsable(false)]
[VsbBrowsable(true)]
public bool DrawLine { get; set; }
Gets the header cell element that displays the date information at the top of this month cell.
[Browsable(false)]
public SchedulerHeaderCellElement Header { get; }
Gets or sets the height in pixels of the header section that displays the date information within this month cell element.
[Browsable(true)]
public int HeaderHeight { get; set; }
Gets or sets the color of the line drawn above the overflow arrow indicator when DrawLine is enabled.
[Browsable(false)]
[VsbBrowsable(true)]
public Color LineColor { get; set; }
Methods
Arranges the child elements within this month cell, positioning the header element at the top with the specified header height.
Measures the size required by this month cell element and its header, determining the space needed for proper layout.
Handles mouse down events, detecting clicks on the overflow button area and triggering the appropriate overflow behavior.
protected override void OnMouseDown(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Overrides:
Handles property change notifications, invalidating the element when the text property changes to trigger a repaint.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The RadPropertyChangedEventArgs instance containing the event data.
Overrides:
Renders the month cell element, drawing the overflow indicator and line when the cell contains more appointments than can be displayed.
Synchronizes the header element's date property with the current date of this month cell element.
public void SyncHeader()