Class
AttachmentActionEventArgs

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:

cs-api-definition
public class AttachmentActionEventArgs : EventArgs

Inheritance: objectEventArgsAttachmentActionEventArgs

Inherited Members EventArgs.Empty

Constructors

AttachmentActionEventArgs(IReadOnlyList<PromptInputAttachedFile>)

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

Declaration

cs-api-definition
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

cs-api-definition
public AttachmentActionEventArgs(IReadOnlyList<PromptInputAttachedFile> attachments, AttachmentAction action)

Parameters

attachments

IReadOnlyList<PromptInputAttachedFile>

action

AttachmentAction

AttachmentActionEventArgs(PromptInputAttachedFile)

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

Declaration

cs-api-definition
public AttachmentActionEventArgs(PromptInputAttachedFile attachment)

Parameters

attachment

PromptInputAttachedFile

AttachmentActionEventArgs(PromptInputAttachedFile, AttachmentAction)

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

Declaration

cs-api-definition
public AttachmentActionEventArgs(PromptInputAttachedFile attachment, AttachmentAction action)

Parameters

attachment

PromptInputAttachedFile

action

AttachmentAction

Properties

Action

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

Declaration

cs-api-definition
public AttachmentAction Action { get; }

Property Value

AttachmentAction

Attachment

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

Declaration

cs-api-definition
public PromptInputAttachedFile Attachment { get; }

Property Value

PromptInputAttachedFile

Attachments

Gets all attachments associated with the action.

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public bool Handled { get; set; }

Property Value

bool

IsMultiple

Gets a value indicating whether multiple attachments are involved.

Declaration

cs-api-definition
public bool IsMultiple { get; }

Property Value

bool