MindFusion.Scheduling for ASP.NET Programmer's Guide
Appointment.CssClass Property
See Also
 





Gets or sets the css class of the appointment.

Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling.WebForms

 Syntax

C#  Copy Code

public override string CssClass { get; set; }

Visual Basic  Copy Code

Public Overrides Property CssClass As String

 Property Value

A string that identifies the Css class of this Appointment. 

 Remarks

For more information about styling items through the use of CSS, refer to the CSS Classes topic.

 Example

The following example shows how an item's border color can be changed by assigning a predefined Css class to the CssClass property.

C#  Copy Code

Appointment app = new Appointment();
app.StartTime = DateTime.Today;
app.EndTime = DateTime.Today.AddDays(1);
app.AllDayEvent = true;
app.HeaderText = "CSS styled item";
app.CssClass = "MyCustomStyle";

Visual Basic  Copy Code

Dim app As New Appointment()
app.StartTime = DateTime.Today
app.EndTime = DateTime.Today.AddDays(1)
app.AllDayEvent = True
app.HeaderText = "CSS styled item"
app.CssClass = "MyCustomStyle"

CSS  Copy Code

.MyCustomStyle .wrapper .borders
{
    border-color: Red !important;
}

 See Also

Appointment Members
Appointment Class
MindFusion.Scheduling Namespace
CSS Classes