Class RadSchedulerElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class RadSchedulerElement : SchedulerVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadSchedulerElement(RadScheduler, SchedulerView)
Initializes a new instance of the RadSchedulerElement class.
Declaration
public RadSchedulerElement(RadScheduler scheduler, SchedulerView view)
Parameters
RadScheduler
scheduler
The scheduler. |
SchedulerView
view
The view. |
Fields
AppointmentShadowShapeProperty
Declaration
public static readonly RadProperty AppointmentShadowShapeProperty
Field Value
RadProperty
|
AppointmentShapeProperty
AppointmentStatusShapeProperty
Declaration
public static readonly RadProperty AppointmentStatusShapeProperty
Field Value
RadProperty
|
DefaultDateTimeTitleColorProperty
Declaration
public static readonly RadProperty DefaultDateTimeTitleColorProperty
Field Value
RadProperty
|
DefaultDateTimeTitleFontProperty
Declaration
public static readonly RadProperty DefaultDateTimeTitleFontProperty
Field Value
RadProperty
|
ExceptionIconProperty
ModernAppointmentBackColor2Property
Declaration
public static readonly RadProperty ModernAppointmentBackColor2Property
Field Value
RadProperty
|
ModernAppointmentBackColorProperty
Declaration
public static readonly RadProperty ModernAppointmentBackColorProperty
Field Value
RadProperty
|
ModernAppointmentBlueColorProperty
Declaration
public static readonly RadProperty ModernAppointmentBlueColorProperty
Field Value
RadProperty
|
ModernAppointmentBorderColorProperty
Declaration
public static readonly RadProperty ModernAppointmentBorderColorProperty
Field Value
RadProperty
|
ModernAppointmentForeColorProperty
Declaration
public static readonly RadProperty ModernAppointmentForeColorProperty
Field Value
RadProperty
|
ModernAppointmentGrayColorProperty
Declaration
public static readonly RadProperty ModernAppointmentGrayColorProperty
Field Value
RadProperty
|
ModernAppointmentGreenColorProperty
Declaration
public static readonly RadProperty ModernAppointmentGreenColorProperty
Field Value
RadProperty
|
ModernAppointmentLavenderColorProperty
Declaration
public static readonly RadProperty ModernAppointmentLavenderColorProperty
Field Value
RadProperty
|
ModernAppointmentOliveColorProperty
Declaration
public static readonly RadProperty ModernAppointmentOliveColorProperty
Field Value
RadProperty
|
ModernAppointmentOrangeColorProperty
Declaration
public static readonly RadProperty ModernAppointmentOrangeColorProperty
Field Value
RadProperty
|
ModernAppointmentPinkColorProperty
Declaration
public static readonly RadProperty ModernAppointmentPinkColorProperty
Field Value
RadProperty
|
ModernAppointmentPurpleColorProperty
Declaration
public static readonly RadProperty ModernAppointmentPurpleColorProperty
Field Value
RadProperty
|
ModernAppointmentRaspberryColorProperty
Declaration
public static readonly RadProperty ModernAppointmentRaspberryColorProperty
Field Value
RadProperty
|
ModernAppointmentYellowColorProperty
Declaration
public static readonly RadProperty ModernAppointmentYellowColorProperty
Field Value
RadProperty
|
NavigatorsWidthProperty
PaintModernApppointmentsBordersProperty
Determines whether the border of the modern appointments when not in the Default state is painted.
Declaration
public static readonly RadProperty PaintModernApppointmentsBordersProperty
Field Value
RadProperty
|
RecurrenceIconProperty
Properties
AllowDefaultContextMenu
Gets or sets a value indicating whether the default context menu is enabled.
Declaration
public bool AllowDefaultContextMenu { get; set; }
Property Value
System.Boolean
The default value is false. |
AppointmentShape
Gets or sets the appointment shape
Declaration
[VsbBrowsable(true)]
public ElementShape AppointmentShape { get; set; }
Property Value
ElementShape
|
ContextMenu
Gets or sets the context menu associated with this element.
Declaration
public virtual RadContextMenu ContextMenu { get; set; }
Property Value
RadContextMenu
The context menu associated with this element. |
DefaultDateTimeTitleColor
Gets or sets the default date time color of the appointment title
Declaration
[VsbBrowsable(true)]
public Color DefaultDateTimeTitleColor { get; set; }
Property Value
System.Drawing.Color
|
DefaultDateTimeTitleFont
Gets or sets the default date time font of the appointment title
Declaration
[VsbBrowsable(true)]
public Font DefaultDateTimeTitleFont { get; set; }
Property Value
System.Drawing.Font
|
DragDropBehavior
Gets or sets the scheduler's drag and drop behavior.
Declaration
public AppointmentDraggingBehavior DragDropBehavior { get; set; }
Property Value
AppointmentDraggingBehavior
|
EditorManager
Gets the scheduler's editor manager.
Declaration
public SchedulerEditManager EditorManager { get; set; }
Property Value
SchedulerEditManager
|
ExceptionIcon
Gets or sets the exception icon
Declaration
[VsbBrowsable(true)]
public Image ExceptionIcon { get; set; }
Property Value
System.Drawing.Image
|
IsContextMenuOpened
Declaration
public bool IsContextMenuOpened { get; }
Property Value
System.Boolean
|
ModernAppointmentBackColor
Gets or sets the back color of the appointment when it has the default None category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentBackColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentBackColor2
Gets or sets the second back color of the appointment when it has a linear gradient in the default None category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentBackColor2 { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentBlueColor
Gets or sets the back color of the appointment when it has the Blue category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentBlueColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentBorderColor
Gets or sets the border color of the appointment when it has the default None category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentBorderColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentForeColor
Gets or sets the fore color of the appointment. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentForeColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentGrayColor
Gets or sets the back color of the appointment when it has the Gray category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentGrayColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentGreenColor
Gets or sets the back color of the appointment when it has the Green category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentGreenColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentLavenderColor
Gets or sets the back color of the appointment when it has the Lavender category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentLavenderColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentOliveColor
Gets or sets the back color of the appointment when it has the Olive category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentOliveColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentOrangeColor
Gets or sets the back color of the appointment when it has the Orange category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentOrangeColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentPinkColor
Gets or sets the back color of the appointment when it has the Pink category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentPinkColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentPurpleColor
Gets or sets the back color of the appointment when it has the Purple category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentPurpleColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentRaspberryColor
Gets or sets the back color of the appointment when it has the Raspberry category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentRaspberryColor { get; set; }
Property Value
System.Drawing.Color
|
ModernAppointmentYellowColor
Gets or sets the back color of the appointment when it has the Yellow category. This color is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public Color ModernAppointmentYellowColor { get; set; }
Property Value
System.Drawing.Color
|
NavigatorsWidth
PaintModernApppointmentsBorders
Gets or sets whether the borders of the appointment element will be painted. This color is set via the ModernAppointmentBorderColor property and is applied only for appointments with modern styles. Check the UseModernAppointmentStyles property for more details.
Declaration
[VsbBrowsable(true)]
public bool PaintModernApppointmentsBorders { get; set; }
Property Value
System.Boolean
|
RecurrenceIcon
Gets or sets the recurrence icon
Declaration
[VsbBrowsable(true)]
public Image RecurrenceIcon { get; set; }
Property Value
System.Drawing.Image
|
ResizeBehavior
Gets or sets the scheduler's resizing behavior.
Declaration
public AppointmentResizingBehavior ResizeBehavior { get; set; }
Property Value
AppointmentResizingBehavior
|
View
ViewElement
Gets the view element.
Declaration
public SchedulerViewElement ViewElement { get; }
Property Value
SchedulerViewElement
The view element. |
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
BeginElementUpdate()
Begins the update.
Declaration
public void BeginElementUpdate()
CallViewChanged(SchedulerViewChangedEventArgs)
Declaration
public void CallViewChanged(SchedulerViewChangedEventArgs e)
Parameters
SchedulerViewChangedEventArgs
e
|
CreateViewElement()
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
EndElementUpdate()
Ends the update.
Declaration
public void EndElementUpdate()
GetAppointmentElement(IEvent)
Gets the AppointmentElement associated with the specified event.
Declaration
public AppointmentElement GetAppointmentElement(IEvent appointment)
Parameters
IEvent
appointment
The event to search for. |
Returns
AppointmentElement
An instance of AppointmentElement if successfull. |
GetResourceHeaderAngleTransform(SchedulerViewType)
Gets the resource header angle tranform.
Declaration
public int GetResourceHeaderAngleTransform(SchedulerViewType viewType)
Parameters
SchedulerViewType
viewType
Type of the view. |
Returns
System.Int32
|
IsElementUpdating()
Determines whether this instance is updating.
Declaration
public bool IsElementUpdating()
Returns
System.Boolean
|
MoveToNextView()
Declaration
public void MoveToNextView()
MoveToPreviousView()
Declaration
public void MoveToPreviousView()
NavigateToFirstResource()
NavigateToLastResource()
NavigateToNextResource()
NavigateToPreviousResource()
OnActiveViewChanged(SchedulerViewChangedEventArgs)
Declaration
protected virtual void OnActiveViewChanged(SchedulerViewChangedEventArgs e)
Parameters
SchedulerViewChangedEventArgs
e
|
ProcessContextMenu(Point)
Declaration
protected virtual bool ProcessContextMenu(Point location)
Parameters
System.Drawing.Point
location
|
Returns
System.Boolean
|
RefreshViewElement()
Disposes the current ViewElement and creates new one.
Declaration
public void RefreshViewElement()
SetResourceHeaderAngleTransform(SchedulerViewType, Int32)
Sets the resource header angle transform.
Declaration
public void SetResourceHeaderAngleTransform(SchedulerViewType viewType, int angleTransform)
Parameters
SchedulerViewType
viewType
Type of the view. |
System.Int32
angleTransform
The angle tranform. |
SynchronizeAppointments()
Forces the synchronization of all appointment elements with their associated events.
Declaration
public void SynchronizeAppointments()
UpdateCellContainers()
Reinitializes the cells and the appointments in all cell containers in the current view.
Declaration
public void UpdateCellContainers()