Table of Contents

TTMSFNCCustomChat.AddImage Method

Adds an image message to the chat.

API unit family: TMSFNCChat Declaring type: TTMSFNCCustomChat

Overloads

Overload 1

Adds an image message to the chat.

function AddImage(AImagePath: string; AText: string = ''; ALocation: TTMSFNCChatMessageLocation = cmlRight; AImageWidth: Integer = 150): TTMSFNCChatItem; overload;

Parameters

Name Description
AImagePath The path or URL of the image.
AText Optional message text displayed with the image.
ALocation The side where the message is displayed.
AImageWidth The display width of the image.

Returns

The newly created chat item.

Overload 2

Adds an image message with a title to the chat.

function AddImage(AImagePath: string; AText: string; ATitle: string; ALocation: TTMSFNCChatMessageLocation = cmlRight; AImageWidth: Integer = 150): TTMSFNCChatItem; overload;

Parameters

Name Description
AImagePath The path or URL of the image.
AText Message text displayed with the image.
ATitle The title displayed above the message text.
ALocation The side where the message is displayed.
AImageWidth The display width of the image.

Returns

The newly created chat item.