alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class AttachmentClickEventArgs

    Event argument class for the AttachmentClick event in the SfChatUI component.

    Inheritance
    object
    AttachmentClickEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.InteractiveChat
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class AttachmentClickEventArgs
    Remarks

    This event is triggered when a user clicks on an attachment (such as a file or image) displayed within a chat message.

    It allows developers to handle the click, for example, to preview the file, download it, open it in a new tab, or perform any custom action before or instead of the default behavior.

    Constructors

    AttachmentClickEventArgs()

    Declaration
    public AttachmentClickEventArgs()

    Properties

    SelectedFile

    Gets or sets the file that is intended to be previewed.

    Declaration
    public FileInfo SelectedFile { get; set; }
    Property Value
    Type Description
    FileInfo

    A FileInfo object containing all relevant details of the file to be previewed. The default value is null.

    Remarks

    The SelectedFile property holds a FileInfo object that represents the file currently selected for preview operations. This file can be previewed or canceled before the message is sent.

    When null, no file is currently selected for preview. Set this property to a FileInfo instance to specify which file should be previewed.

    The FileInfo object contains all necessary file metadata including name, size, type, and other relevant details required for preview rendering and message transmission.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved