The requested page is not available for the requested platform. You are viewing the content for Default platform.

FileAttachmentListViewController.AddFromFileAction Property

Provides access to the FileAttachmentListViewController's AddFromFile Action.

Namespace: DevExpress.ExpressApp.FileAttachments.Win

Assembly: DevExpress.ExpressApp.FileAttachment.Win.v19.1.dll

Declaration

public SimpleAction AddFromFileAction { get; }
Public ReadOnly Property AddFromFileAction As SimpleAction

Property Value

Type Description
SimpleAction

A SimpleAction object that is the AddFromFile Action.

Remarks

The AddFromFile Action invokes a OpenFileDialog dialog to obtain a file name to be added (multiple files can also be selected). For each selected file, a new object is created and its IFileData type property is initialized with the selected file. The IFileData property that stores a file is specified via the FileAttachmentAttribute applied to the current persistent object declaration.

FileAttach_AddFromFileAction

To ascertain why the AddFromFile Action is currently deactivated or disabled, use the DiagnosticInfo Action. If you need to change the Action's "active" or "enabled" state in code, use its ActionBase.Active or ActionBase.Enabled property, respectively.

Information on the AddFromFile Action is available in the Application Model's ActionDesign node. To access it, use the Model Editor.

See Also