New to Telerik UI for WinFormsStart a free 30-day trial

Provides data for attachment action events (Download, Share, Download All). Set Handled to true in the event handler to suppress the default behavior provided by RadChatElement.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class AttachmentActionEventArgs : EventArgs

Inheritance: objectEventArgsAttachmentActionEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance for a multiple attachments action with an explicit action.

C#
public AttachmentActionEventArgs(IReadOnlyList<PromptInputAttachedFile> attachments, AttachmentAction action)
Parameters:attachmentsIReadOnlyList<PromptInputAttachedFile>actionAttachmentAction

Initializes a new instance for a multiple attachments action (defaults to Download).

C#
public AttachmentActionEventArgs(IReadOnlyList<PromptInputAttachedFile> attachments)
Parameters:attachmentsIReadOnlyList<PromptInputAttachedFile>

Initializes a new instance for a single attachment action with an explicit action.

C#
public AttachmentActionEventArgs(PromptInputAttachedFile attachment, AttachmentAction action)
Parameters:attachmentPromptInputAttachedFileactionAttachmentAction

Initializes a new instance for a single attachment action (defaults to Download).

C#
public AttachmentActionEventArgs(PromptInputAttachedFile attachment)
Parameters:attachmentPromptInputAttachedFile

Properties

Gets the action being performed on the attachment(s).

C#
public AttachmentAction Action { get; }

Gets the attachment associated with the action (first attachment if multiple).

C#
public PromptInputAttachedFile Attachment { get; }

Gets all attachments associated with the action.

C#
public IReadOnlyList<PromptInputAttachedFile> Attachments { get; }

Gets or sets a value indicating whether the event has been handled. When set to true, the default behavior provided by RadChatElement (such as displaying a save dialog) is suppressed.

C#
public bool Handled { get; set; }

Gets a value indicating whether multiple attachments are involved.

C#
public bool IsMultiple { get; }