Class AppointmentElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class AppointmentElement : SchedulerVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, ISchedulerRecyclableElement
Constructors
AppointmentElement(RadScheduler, SchedulerView, IEvent)
Initializes a new instance of the AppointmentElement class.
Declaration
public AppointmentElement(RadScheduler scheduler, SchedulerView view, IEvent appointment)
Parameters
RadScheduler
scheduler
The scheduler. |
SchedulerView
view
The view. |
IEvent
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.
Declaration
public RectangleF DesiredBounds
Field Value
System.Drawing.RectangleF
|
ResizeIndicatorColorProperty
ResizeIndicatorSizeProperty
SelectedBorderColorProperty
SelectedProperty
Properties
Appointment
Gets or sets the appointment.
Declaration
public IEvent Appointment { get; set; }
Property Value
IEvent
The appointment. |
AppointmentDescription
Gets or sets the appointment description.
Declaration
public string AppointmentDescription { get; set; }
Property Value
System.String
The appointment description. |
AppointmentIcon
Gets or sets the appointment icon.
Declaration
public Image AppointmentIcon { get; set; }
Property Value
System.Drawing.Image
The appointment icon. |
AppointmentLocation
Gets or sets the appointment location.
Declaration
public string AppointmentLocation { get; set; }
Property Value
System.String
The appointment location. |
AppointmentSubject
Gets or sets the appointment subject.
Declaration
public string AppointmentSubject { get; set; }
Property Value
System.String
The appointment subject. |
End
Gets or sets the end date.
Declaration
public DateTime End { get; set; }
Property Value
System.DateTime
The end. |
Recurring
Gets or sets a value indicating whether this AppointmentElement is recurring.
Declaration
public bool Recurring { get; }
Property Value
System.Boolean
|
RelatedAppointments
Gets or sets the related appointments.
Declaration
public List<AppointmentElement> RelatedAppointments { get; set; }
Property Value
System.Collections.Generic.List<AppointmentElement>
The related appointments. |
ResizeIndicatorColor
Gets or sets the back color of the resize handles of this element.
Declaration
public Color ResizeIndicatorColor { get; set; }
Property Value
System.Drawing.Color
|
ResizeIndicatorSize
Gets or sets the size of the resize handles of this element.
Declaration
public Size ResizeIndicatorSize { get; set; }
Property Value
System.Drawing.Size
|
Selected
Gets or sets a value indicating whether this AppointmentElement is selected.
Declaration
public virtual bool Selected { get; set; }
Property Value
System.Boolean
|
SelectedBorderColor
Gets or sets the border color of this element for the selected state.
Declaration
public Color SelectedBorderColor { get; set; }
Property Value
System.Drawing.Color
|
ShowAppointmentDescription
Gets or sets a value indicating whether a appointment description should be drawn
Declaration
public bool ShowAppointmentDescription { get; set; }
Property Value
System.Boolean
|
Start
Gets or sets the start date.
Declaration
public DateTime Start { get; set; }
Property Value
System.DateTime
The start. |
Text
Gets or sets the text associated with this item.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
TitleFormat
Gets or sets the title format.
Declaration
public string TitleFormat { get; set; }
Property Value
System.String
The title format. |
UseDefaultPaint
Gets or sets a value indicating whether use the built-in LightVisualElement painting.
Declaration
public bool UseDefaultPaint { get; set; }
Property Value
System.Boolean
|
UseHtml
Gets or sets a value indicating whether HTML-like text rendering will be used for the appointment text.
Declaration
public bool UseHtml { get; set; }
Property Value
System.Boolean
|
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
CreateAppointmentText()
Declaration
protected virtual string CreateAppointmentText()
Returns
System.String
|
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
DrawDefaultBackground(IGraphics)
Declaration
public virtual void DrawDefaultBackground(IGraphics graphics)
Parameters
IGraphics
graphics
|
DrawDefaultBorder(IGraphics, Single, SizeF)
Declaration
public virtual SizeF DrawDefaultBorder(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Returns
System.Drawing.SizeF
|
DrawEventText(IGraphics)
DrawResizeHandles(IGraphics)
DrawShadow(IGraphics)
GetClientRectangle(SizeF)
Declaration
protected override RectangleF GetClientRectangle(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.RectangleF
|
Overrides
InitializeAppointment()
Declaration
protected virtual void InitializeAppointment()
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnDoubleClick(EventArgs)
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
PaintAppointmentIcon(IGraphics)
Declaration
public virtual void PaintAppointmentIcon(IGraphics graphics)
Parameters
IGraphics
graphics
|
PaintBorder(IGraphics, Single, SizeF)
Declaration
protected override void PaintBorder(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
PaintElement(IGraphics, Single, SizeF)
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
PaintFill(IGraphics, Single, SizeF)
Declaration
protected override void PaintFill(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
PaintRecurrenceIcon(IGraphics)
Declaration
public virtual void PaintRecurrenceIcon(IGraphics graphics)
Parameters
IGraphics
graphics
|
PaintText(IGraphics)
Declaration
protected override void PaintText(IGraphics graphics)
Parameters
IGraphics
graphics
|
Overrides
ProcessDragOver(Point, ISupportDrag)
Declaration
protected override bool ProcessDragOver(Point mousePosition, ISupportDrag dragObject)
Parameters
System.Drawing.Point
mousePosition
|
ISupportDrag
dragObject
|
Returns
System.Boolean
|
Overrides
SetBackgroundId(Int32)
Sets the background id.
Declaration
public virtual void SetBackgroundId(int backgroundId)
Parameters
System.Int32
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()
Explicit Interface Implementations
ISchedulerRecyclableElement.Attach(SchedulerView, Object)
Declaration
void ISchedulerRecyclableElement.Attach(SchedulerView view, object context)
Parameters
SchedulerView
view
|
System.Object
context
|
Implements
ISchedulerRecyclableElement.get_Class()
Declaration
string ISchedulerRecyclableElement.get_Class()
Returns
System.String
|
Implements
ISchedulerRecyclableElement.get_ThemeRole()
Declaration
string ISchedulerRecyclableElement.get_ThemeRole()
Returns
System.String
|
Implements
ISchedulerRecyclableElement.set_Class(String)
Declaration
void ISchedulerRecyclableElement.set_Class(string value)
Parameters
System.String
value
|
Implements
ISchedulerRecyclableElement.set_ThemeRole(String)
Declaration
void ISchedulerRecyclableElement.set_ThemeRole(string value)
Parameters
System.String
value
|