Internet Direct (Indy) Version 9.0.2 Beta
TIdText.Create
Constructor for the collection item.

constructor Create(Collection: TIdMessageParts; ABody: TStrings);
Parameters
Collection: TIdMessageParts
Owner of the collection item.

ABody: TStrings = nil
Content of the message part.

Description
Create is the constructor for the collection item, and adds the new collection item to the collection specified in Collection. Create calls the inherited Create method to identify the collection that own the collection item. Create also initializes the Body property from the value specified in ABody.