Skip to main content
A newer version of this page is available. .

FileAttachmentListViewController.AddFromFileAction Property

Provides access to the FileAttachmentListViewController‘s AddFromFile Action.

Namespace: DevExpress.ExpressApp.FileAttachments.Win

Assembly: DevExpress.ExpressApp.FileAttachment.Win.v18.2.dll

Declaration

public SimpleAction AddFromFileAction { get; }

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