Topic Path: Symbol Reference > Classes > TIdMessageCollection Class > TIdMessageCollection Properties > Messages Property
ContentsIndexHome
PreviousUpNext
TIdMessageCollection.Messages Property

Provides indexed access to a message item in the collection.

property Messages [index: Integer]: TIdMessage;

Messages is an Integer indexed TIdMessage property that provides access to the TIdMessage contained in a collection item. Index values must be in the range 0 to Count-1. 

Messages is the default property for the collection. 

The following statements are equivalent, and return the same TIdMessage instance from the collection: 

 

   // AMailbox: TIdMailbox
   MAgent.RenderPreview(AMailbox.MessageList.Messages[i]);
   MAgent.RenderPreview(AMailbox.MessageList[i]);

TIdMessage 

TIdMessageItem 

TIdMailbox.MessageList

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.