ClassAppointmentElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class AppointmentElement : SchedulerVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ISchedulerRecyclableElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementSchedulerVisualElementAppointmentElement
Implements:
Inherited Members
Constructors
AppointmentElement(RadScheduler, SchedulerView, IEvent)
Initializes a new instance of the AppointmentElement class.
Declaration
public AppointmentElement(RadScheduler scheduler, SchedulerView view, IEvent appointment)
Parameters
scheduler
The scheduler.
view
The view.
appointment
The appointment.
Fields
DesiredBounds
The final arrange bounds of the element. This rectangle is calculated durring the layout of the parrent container and is used to perform the final arrange.
ResizeIndicatorColorProperty
Declaration
public static RadProperty ResizeIndicatorColorProperty
Field Value
ResizeIndicatorSizeProperty
Declaration
public static RadProperty ResizeIndicatorSizeProperty
Field Value
SelectedBorderColorProperty
Declaration
public static RadProperty SelectedBorderColorProperty
Field Value
Properties
Appointment
Gets or sets the appointment.
Declaration
public IEvent Appointment { get; set; }
Property Value
The appointment.
AppointmentDescription
Gets or sets the appointment description.
Declaration
public string AppointmentDescription { get; set; }
Property Value
The appointment description.
AppointmentIcon
Gets or sets the appointment icon.
Declaration
public Image AppointmentIcon { get; set; }
Property Value
The appointment icon.
AppointmentLocation
Gets or sets the appointment location.
Declaration
public string AppointmentLocation { get; set; }
Property Value
The appointment location.
AppointmentSubject
Gets or sets the appointment subject.
Declaration
public string AppointmentSubject { get; set; }
Property Value
The appointment subject.
End
Gets or sets the end date.
Recurring
Gets or sets a value indicating whether this AppointmentElement is recurring.
Declaration
public bool Recurring { get; }
Property Value
true if recurring; otherwise, false.
RelatedAppointments
Gets or sets the related appointments.
Declaration
public List<AppointmentElement> RelatedAppointments { get; set; }
Property Value
List<AppointmentElement>
The related appointments.
ResizeIndicatorColor
Gets or sets the back color of the resize handles of this element.
ResizeIndicatorSize
Gets or sets the size of the resize handles of this element.
Selected
Gets or sets a value indicating whether this AppointmentElement is selected.
Declaration
public virtual bool Selected { get; set; }
Property Value
true if selected; otherwise, false.
SelectedBorderColor
Gets or sets the border color of this element for the selected state.
ShowAppointmentDescription
Gets or sets a value indicating whether a appointment description should be drawn
Declaration
public bool ShowAppointmentDescription { get; set; }
Property Value
true if ShowAppointmentDescription; otherwise, false.
Start
Gets or sets the start date.
Declaration
public DateTime Start { get; set; }
Property Value
The start.
Text
Gets or sets the text associated with this item.
Declaration
public override string Text { get; set; }
Property Value
Overrides
TitleFormat
Gets or sets the title format.
Declaration
public string TitleFormat { get; set; }
Property Value
The title format.
UseDefaultPaint
Gets or sets a value indicating whether use the built-in LightVisualElement painting.
Methods
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
DisposeManagedResources()
Disposes of managed resources including cached images and SVG images when the element is being disposed.
Declaration
protected override void DisposeManagedResources()
Overrides
DrawDefaultBackground(IGraphics)
Declaration
public virtual void DrawDefaultBackground(IGraphics graphics)
Parameters
graphics
DrawEventText(IGraphics)
Declaration
public virtual void DrawEventText(IGraphics graphics)
Parameters
graphics
DrawResizeHandles(IGraphics)
Declaration
public virtual void DrawResizeHandles(IGraphics graphics)
Parameters
graphics
DrawShadow(IGraphics)
Declaration
public virtual void DrawShadow(IGraphics graphics)
Parameters
graphics
GetClientRectangle(SizeF)
Declaration
protected override RectangleF GetClientRectangle(SizeF finalSize)
Parameters
finalSize
Returns
Overrides
InitializeAppointment()
Declaration
protected virtual void InitializeAppointment()
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnDoubleClick(EventArgs)
Raises the DoubleClick event.
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
e
Overrides
OnMouseDown(MouseEventArgs)
Called when a mouse button is pressed down over the item.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnMouseMove(MouseEventArgs)
Called when the mouse moves over the item, handling highlight and border highlight effects.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnMouseUp(MouseEventArgs)
Called when a mouse button is released over the item.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event to notify subscribers of property value changes using the provided event arguments.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
The PropertyChangedEventArgs containing the property change information.
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
Event arguments containing information about the property that changed.
Overrides
PaintAppointmentIcon(IGraphics)
Declaration
public virtual void PaintAppointmentIcon(IGraphics graphics)
Parameters
graphics
PaintBorder(IGraphics, float, SizeF)
Renders the border of the element using the specified graphics context, rotation angle, and scaling factor.
Declaration
protected override void PaintBorder(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics context used for painting operations.
angle
The rotation angle in degrees to apply during painting.
scale
The scaling factors to apply for width and height during painting.
Overrides
PaintElement(IGraphics, float, SizeF)
Performs the main painting operation for the element, rendering fill, content, and border in the correct order.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics context used for rendering.
angle
The rotation angle to apply during painting.
scale
The scaling factor to apply during painting.
Overrides
PaintFill(IGraphics, float, SizeF)
Renders the background fill of the element using the specified graphics context, rotation angle, and scaling factor.
Declaration
protected override void PaintFill(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics context used for painting operations.
angle
The rotation angle in degrees to apply during painting.
scale
The scaling factors to apply for width and height during painting.
Overrides
PaintRecurrenceIcon(IGraphics)
Declaration
public virtual void PaintRecurrenceIcon(IGraphics graphics)
Parameters
graphics
PaintText(IGraphics)
Renders the text content of the element, including horizontal line effects when enabled.
Declaration
protected override void PaintText(IGraphics graphics)
Parameters
graphics
The graphics context used for rendering text.
Overrides
ProcessDragOver(Point, ISupportDrag)
Determines whether the element may be treated as a drop target during drag-and-drop operation.
Declaration
protected override bool ProcessDragOver(Point mousePosition, ISupportDrag dragObject)
Parameters
mousePosition
The current mouse position.
dragObject
The object being dragged.
Returns
True if the element can accept the drop; otherwise, false.
Overrides
SetBackgroundId(int)
Sets the background id.
Declaration
public virtual void SetBackgroundId(int backgroundId)
Parameters
backgroundId
The background id. The value should be existing in the Scheduler.Backgrounds.
Synchronize()
Synchronizes element properties with Appointment properties.
Declaration
public virtual void Synchronize()
SyncronizeStartAndEndWithEvent()
Synchronizes the start and end with event.
Declaration
public virtual void SyncronizeStartAndEndWithEvent()