TTMSFNCChat.AddImage Method
Adds an image message to the chat.
API unit family: TMSFNCChat
Declaring type: TTMSFNCChat
Inherited from: 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;
TTMSFNCChatItem* __fastcall AddImage(System::UnicodeString AImagePath, System::UnicodeString AText = System::UnicodeString(), TTMSFNCChatMessageLocation ALocation = (TTMSFNCChatMessageLocation)(0x1), int AImageWidth = 0x96)/* 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;
TTMSFNCChatItem* __fastcall AddImage(System::UnicodeString AImagePath, System::UnicodeString AText, System::UnicodeString ATitle, TTMSFNCChatMessageLocation ALocation = (TTMSFNCChatMessageLocation)(0x1), int AImageWidth = 0x96)/* 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.