| << Click to display table of contents >> TRVChat.GetMessage, GetMessageAndImage | 
Returns the message by the item index in the ChatRichView document.
function GetMessage(ItemNo: Integer): TRVChatMessage;
 
procedure GetMessageAndImage(ItemNo: Integer;
  out Msg: TRVChatMessage;  out Image: TRVGraphic;
  out ImageText: TRVUnicodeString);
Input parameter:
ItemNo – the item index in the ChatRichView document (an index of any item belonging to the message can be used).
Output:
Msg (or return value) – the message containing an item with the specified index, or nil if the specified item does not belong to a message.
Image – the image attached to this message (or nil if the message does not have an attached image)
ImageText – the text string associated with Image.
The opposite method to GetMessage is GetMessageItemNo.