Edit this page

Calendar Message

The CalendarMessage operates with DateTime value type. Its constructors accept the following parameters.

  • DateTime selectedDate
  • MessageDisplayPosition displayPosition
  • Author author
  • [DateTime creationDate = default(DateTime)]
  • [DateTime displayDate = default(DateTime)]): the creationDate and displayDate parameters are optional here. The displayDate parameter is used to control the visible time period when adding the message. If the selectedDate corresponds to a different time period, it would not be visible initially.

Example 1: Defining a CalendarMessage

   DateTime time = new DateTime(2018, 6, 1);
   CalendarMessage calendarMessage = new CalendarMessage(MessageDisplayPosition.Popup, currentAuthor);

   this.chat.AddMessage(calendarMessage);

Figure 1: Defining CalendarMessage

Defining CalendarMessage

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy