New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

A scheduled event in RadScheduler with Start and End time, Subject as well other optional additional informatioin such as resources or custom attributes.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class Appointment : StateManager, IMarkableStateManager, IStateManager, ISerializable, ICustomTypeDescriptor, ICloneable, IDisposable

Inheritance: objectStateManagerAppointment

Implements: ICloneableICustomTypeDescriptorIDisposableIMarkableStateManagerISerializableIStateManager...

Inherited Members StateManager.IsTrackingViewStateStateManager.ViewStateobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public Appointment()
C#
public Appointment(object id, DateTime startDate, DateTime endDate, string subject, string recurrenceRule, object recurrenceParentId, RecurrenceState initialState, string timeZoneId)
Parameters:idobjectstartDateDateTimeendDateDateTimesubjectstringrecurrenceRulestringrecurrenceParentIdobjectinitialStateRecurrenceStatetimeZoneIdstring
C#
public Appointment(object id, DateTime startDate, DateTime endDate, string subject, string recurrenceRule, object recurrenceParentId, RecurrenceState initialState)
Parameters:idobjectstartDateDateTimeendDateDateTimesubjectstringrecurrenceRulestringrecurrenceParentIdobjectinitialStateRecurrenceState
C#
public Appointment(object id, DateTime startDate, DateTime endDate, string subject, string recurrenceRule)
Parameters:idobjectstartDateDateTimeendDateDateTimesubjectstringrecurrenceRulestring
C#
public Appointment(object id, DateTime startDate, DateTime endDate, string subject)
Parameters:idobjectstartDateDateTimeendDateDateTimesubjectstring
C#
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
protected Appointment(SerializationInfo info, StreamingContext context)
Parameters:infoSerializationInfocontextStreamingContext

Properties

Gets or sets a value indicating whether the deleting of this appointment is allowed.

C#
public bool AllowDelete { get; set; }
Property Value:

true if the deleting of this appointment is allowed; otherwise, false.

Gets or sets a value indicating whether the editing of this appointment is allowed.

C#
public bool AllowEdit { get; set; }
Property Value:

true if editing of this appointment is allowed; otherwise, false.

Gets the appointment controls.

C#
[Browsable(false)]
[ScriptIgnore]
public IList<AppointmentControl> AppointmentControls { get; }
Property Value:

The appointment controls.

Gets the attributes.

C#
[Browsable(false)]
[ScriptIgnore]
public AttributeCollection Attributes { get; }
Property Value:

The attributes.

Gets or sets the color of the back.

C#
[TypeConverter(typeof(WebColorConverter))]
[ScriptIgnore]
public virtual Color BackColor { get; set; }
Property Value:

The color of the back.

Gets or sets the color of the border.

C#
[TypeConverter(typeof(WebColorConverter))]
[ScriptIgnore]
public virtual Color BorderColor { get; set; }
Property Value:

The color of the border.

Gets or sets the border style.

C#
[ScriptIgnore]
public virtual BorderStyle BorderStyle { get; set; }
Property Value:

The border style.

Gets or sets the width of the border.

C#
[ScriptIgnore]
public virtual Unit BorderWidth { get; set; }
Property Value:

The width of the border.

Gets the client ID.

C#
[Browsable(false)]
[ScriptIgnore]
public string ClientID { get; }
Property Value:

The client ID.

Gets or sets the context menu ID.

C#
public string ContextMenuID { get; set; }
Property Value:

The context menu ID.

Gets or sets the CSS class.

C#
[ScriptIgnore]
public string CssClass { get; set; }
Property Value:

The CSS class.

Gets or sets the data item represented by the Appointment object in the RadScheduler control.

C#
public virtual object DataItem { get; set; }

This property is available only during data binding.

The Appointment description.

C#
public string Description { get; set; }

Gets the DOM elements.

C#
[Browsable(false)]
public IList<string> DomElements { get; }
Property Value:

The DOM elements.

The appointment duration.

C#
[Browsable(false)]
[ScriptIgnore]
public TimeSpan Duration { get; }

The duration can be Zero.

Gets or sets the end.

C#
[ScriptIgnore]
public DateTime End { get; set; }
Property Value:

The end.

Gets or sets the UTC end.

C#
[ScriptIgnore]
public DateTime EndLocal { get; set; }
Property Value:

The UTC end.

Gets the font.

C#
[ScriptIgnore]
public virtual FontInfo Font { get; }
Property Value:

The font.

Gets or sets the ForeColor.

C#
[TypeConverter(typeof(WebColorConverter))]
[ScriptIgnore]
public virtual Color ForeColor { get; set; }
Property Value:

The ForeColor.

Gets or sets the ID.

C#
[ClientPropertyName("id")]
public object ID { get; set; }
Property Value:

The ID.

Gets or sets the owner.

C#
[ScriptIgnore]
public RadScheduler Owner { get; set; }
Property Value:

The owner.

Gets or sets the recurrence parent ID.

C#
public object RecurrenceParentID { get; set; }
Property Value:

The recurrence parent ID.

Gets or sets the recurrence rule.

C#
[ScriptIgnore]
public string RecurrenceRule { get; set; }
Property Value:

The recurrence rule.

Gets or sets the state of the recurrence.

C#
public RecurrenceState RecurrenceState { get; set; }
Property Value:

The state of the recurrence.

A collection of all reminders associated with the appointment

C#
[Browsable(false)]
[ScriptIgnore]
public ReminderCollection Reminders { get; set; }

Gets or sets the resources.

C#
[Browsable(false)]
[ScriptIgnore]
public ResourceCollection Resources { get; set; }
Property Value:

The resources.

Gets or sets the start.

C#
[ScriptIgnore]
public DateTime Start { get; set; }
Property Value:

The start.

Gets or sets the UTC start.

C#
[ScriptIgnore]
public DateTime StartLocal { get; set; }
Property Value:

The UTC start.

The Appointment subject.

C#
public string Subject { get; set; }

The Appointment time zone

C#
public string TimeZoneID { get; set; }

Gets or sets the tool tip.

C#
public string ToolTip { get; set; }
Property Value:

The tool tip.

Gets or sets the visible.

C#
public bool Visible { get; set; }
Property Value:

The visible.

Methods

Creates a new Appointment object that is a clone of the current instance.

C#
public virtual Appointment Clone()
Returns:

Appointment

A new Appointment object that is a clone of the current instance.

C#
protected virtual Appointment CreateAppointment()
Returns:

Appointment

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool
C#
protected virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters:infoSerializationInfocontextStreamingContext
C#
public bool IsException()
Returns:

bool

C#
public bool IsMaster()
Returns:

bool

C#
public bool IsNotRecurring()
Returns:

bool

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: StateManager.LoadViewState(object)

C#
protected override object SaveViewState()
Returns:

object

Overrides: StateManager.SaveViewState()

C#
protected override void TrackViewState()

Overrides: StateManager.TrackViewState()