New to Telerik UI for WinFormsStart a free 30-day trial

Provides class for iCal objects.

Definition

Namespace:Telerik.WinControls.UI.Scheduler.ICalendar

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class CalObject : IEquatable<CalObject>

Inheritance: objectCalObject

Implements: IEquatable<CalObject>

Constructors

Initializes a new instance of the CalObject class.

C#
public CalObject(string name)
Parameters:namestring

The name.

Properties

Gets the children objects.

C#
public Collection<CalObject> Children { get; }
Property Value:

The children.

Gets the name.

C#
public string Name { get; }
Property Value:

The name.

Gets the properties.

C#
public Collection<CalProperty> Properties { get; }
Property Value:

The properties.

Gets the CalProperty with the specified property name.

C#
public CalProperty this[string propertyName] { get; }
Parameters:propertyNamestring

Methods

Adds the children.

C#
public CalObject AddChildren(string name)
Parameters:namestring

The name.

Returns:

CalObject

Adds the property.

C#
public CalProperty AddProperty(string key, string value, string parameterKey, string parameterValue)
Parameters:keystring

The key.

valuestring

The value.

parameterKeystring

The parameter key.

parameterValuestring

The parameter value.

Returns:

CalProperty

Adds the property.

C#
public CalProperty AddProperty(string key, string value)
Parameters:keystring

The key.

valuestring

The value.

Returns:

CalProperty

Determines whether the specified name contains property.

C#
public bool ContainsProperty(string name)
Parameters:namestring

The name.

Returns:

bool

True if the specified name contains property; otherwise, false.

Indicates whether the current object is equal to another object of the same type.

C#
public bool Equals(CalObject other)
Parameters:otherCalObject

An object to compare with this object.

Returns:

bool

True if the current object is equal to the other parameter; otherwise, false.

Implements: IEquatable<CalObject>.Equals(CalObject)

Gets the child CalObject by name.

C#
public IList<CalObject> GetChildrenByName(string name)
Parameters:namestring

The name.

Returns:

IList<CalObject>

Toes the time zone.

C#
public static TimeZoneInfo ToTimeZone(CalObject calObject)
Parameters:calObjectCalObject

The cal object.

Returns:

TimeZoneInfo

Exceptions:

CalendarParseException

CalendarParseException.

Verifies the property is not null.

C#
public CalProperty VerifyPropertyIsNotNull(string propertyName)
Parameters:propertyNamestring

Name of the property.

Returns:

CalProperty

Exceptions:

CalendarParseException

CalendarParseException.