• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class CalendarBuilder

Builder for constructing Calendar instances for writing.

Inheritance
object
CalendarBuilder
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.ICal
Assembly: DRIT.Mail.dll
Syntax
public sealed class CalendarBuilder

Methods

View Source

Build()

Builds the Calendar.

Declaration
public Calendar Build()
Returns
Type Description
Calendar
View Source

CalendarScale(string?)

Sets the calendar scale (CALSCALE).

Declaration
public CalendarBuilder CalendarScale(string? calendarScale)
Parameters
Type Name Description
string calendarScale

The calendar scale used by the operation.

Returns
Type Description
CalendarBuilder
View Source

Event(Action<CalendarEventBuilder>)

Adds an event (VEVENT) configured by the specified callback.

Declaration
public CalendarBuilder Event(Action<CalendarEventBuilder> configure)
Parameters
Type Name Description
Action<CalendarEventBuilder> configure

Specifies the configure value.

Returns
Type Description
CalendarBuilder
View Source

ExtendedProperty(string, string)

Adds an X-* extension property.

Declaration
public CalendarBuilder ExtendedProperty(string name, string value)
Parameters
Type Name Description
string name

Specifies the name value.

string value

The value to process.

Returns
Type Description
CalendarBuilder
View Source

Method(CalendarMethod)

Sets the calendar method (METHOD).

Declaration
public CalendarBuilder Method(CalendarMethod method)
Parameters
Type Name Description
CalendarMethod method

Specifies the method value.

Returns
Type Description
CalendarBuilder
View Source

ProductId(string)

Sets the product identifier (PRODID).

Declaration
public CalendarBuilder ProductId(string productId)
Parameters
Type Name Description
string productId

The product id identifier.

Returns
Type Description
CalendarBuilder
View Source

TimeZone(Action<VTimeZoneBuilder>)

Adds a timezone (VTIMEZONE) configured by the specified callback.

Declaration
public CalendarBuilder TimeZone(Action<VTimeZoneBuilder> configure)
Parameters
Type Name Description
Action<VTimeZoneBuilder> configure

Specifies the configure value.

Returns
Type Description
CalendarBuilder
View Source

Todo(Action<TodoBuilder>)

Adds a to-do (VTODO) configured by the specified callback.

Declaration
public CalendarBuilder Todo(Action<TodoBuilder> configure)
Parameters
Type Name Description
Action<TodoBuilder> configure

Specifies the configure value.

Returns
Type Description
CalendarBuilder
View Source

Version(string)

Sets the iCalendar version (VERSION). Defaults to 2.0.

Declaration
public CalendarBuilder Version(string version)
Parameters
Type Name Description
string version

Specifies the version value.

Returns
Type Description
CalendarBuilder
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX