ClassAttachmentActionEventArgs
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:
public class AttachmentActionEventArgs : EventArgs
Inheritance: objectEventArgsAttachmentActionEventArgs
Inherited Members
Constructors
AttachmentActionEventArgs(IReadOnlyList<PromptInputAttachedFile>)
Initializes a new instance for a multiple attachments action (defaults to Download).
Declaration
public AttachmentActionEventArgs(IReadOnlyList<PromptInputAttachedFile> attachments)
Parameters
attachments
IReadOnlyList<PromptInputAttachedFile>
AttachmentActionEventArgs(IReadOnlyList<PromptInputAttachedFile>, AttachmentAction)
Initializes a new instance for a multiple attachments action with an explicit action.
Declaration
public AttachmentActionEventArgs(IReadOnlyList<PromptInputAttachedFile> attachments, AttachmentAction action)
Parameters
attachments
IReadOnlyList<PromptInputAttachedFile>
action
AttachmentActionEventArgs(PromptInputAttachedFile)
Initializes a new instance for a single attachment action (defaults to Download).
Declaration
public AttachmentActionEventArgs(PromptInputAttachedFile attachment)
Parameters
attachment
AttachmentActionEventArgs(PromptInputAttachedFile, AttachmentAction)
Initializes a new instance for a single attachment action with an explicit action.
Declaration
public AttachmentActionEventArgs(PromptInputAttachedFile attachment, AttachmentAction action)
Parameters
attachment
action
Properties
Action
Gets the action being performed on the attachment(s).
Declaration
public AttachmentAction Action { get; }
Property Value
Attachment
Gets the attachment associated with the action (first attachment if multiple).
Declaration
public PromptInputAttachedFile Attachment { get; }
Property Value
Attachments
Gets all attachments associated with the action.
Declaration
public IReadOnlyList<PromptInputAttachedFile> Attachments { get; }
Property Value
IReadOnlyList<PromptInputAttachedFile>
Handled
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.
IsMultiple
Gets a value indicating whether multiple attachments are involved.