Skip to main content
Table of Contents

TTMSFNCChat.AddFile Method

Adds a file message to the chat.

API unit family: TMSFNCChat Declaring type: TTMSFNCChat Inherited from: TTMSFNCCustomChat

Syntax

FMX.TMSFNCChat.hppPascalC++
function AddFile(AFilePath: string; AFileName: string; ATitle: string = ''; ALocation: TTMSFNCChatMessageLocation = cmlRight): TTMSFNCChatItem;
TTMSFNCChatItem* __fastcall AddFile(System::UnicodeString AFilePath, System::UnicodeString AFileName, System::UnicodeString ATitle = System::UnicodeString(), TTMSFNCChatMessageLocation ALocation = (TTMSFNCChatMessageLocation)(0x1));

Parameters

Name Description
AFilePath The path or URL of the file.
AFileName The displayed file name.
ATitle Optional title displayed above the file message.
ALocation The side where the message is displayed.

Returns

The newly created chat item.