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

Represents a file attachment displayed in the RadPromptInputElement attachments area. Provides properties for the file name, size, custom data, and a stream provider.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PromptInputAttachedFile : INotifyPropertyChanged

Inheritance: objectPromptInputAttachedFile

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the PromptInputAttachedFile class.

C#
public PromptInputAttachedFile()

Initializes a new instance of the PromptInputAttachedFile class with a FileInfo.

C#
public PromptInputAttachedFile(FileInfo file)
Parameters:fileFileInfo

Properties

Gets or sets some custom information about the particular item.

C#
public object Data { get; set; }

Gets or sets the short file name of the attachment that will be displayed in the message.

C#
public string FileName { get; set; }

Gets or sets the size of the attachment in bytes.

C#
public long FileSize { get; set; }

Gets or sets the func that provides a stream of the attachment.

C#
public Func<Stream> GetFileStream { get; set; }

Gets or sets a value indicating whether the file is currently being downloaded. Consumers can toggle this flag while running a download operation so that the attachment chip UI can reflect the in-progress state (e.g. show a spinner).

C#
public bool IsDownloading { get; set; }

Methods

Raises the PropertyChanged event.

C#
protected virtual void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Events

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged