Edit this page

List Message

Specific for the ListMessage is that it has to be populated with a source collection and can have its SelectionMode set. The arguments of its constructor accept the following parameters.

  • MessageDisplayPosition displayPosition
  • Author author
  • IEnumerable source
  • SelectionMode selectionMode
  • DateTime creationDate

Example 1: Defining an ListMessage

   List<string> coffee = new List<string>();
        coffee.Add("Caffe Latte");
        coffee.Add("Cafe mocha");
        coffee.Add("Cuban espresso");
        coffee.Add("Iced Coffee");

        ListMessage listMessageInline = new ListMessage(MessageDisplayPosition.Inline, this.currentAuthor, coffee, SelectionMode.Single);


Figure 1: Defining ListMessage

Defining ListMessage

See Also

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

Give article feedback

Tell us how we can improve this article