FileAttachmentController.OpenAction Property
Provides access to the FileAttachmentController‘s Open Action.
Namespace: DevExpress.ExpressApp.FileAttachments.Win
Assembly: DevExpress.ExpressApp.FileAttachment.Win.v24.1.dll
NuGet Package: DevExpress.ExpressApp.FileAttachment.Win
Declaration
Property Value
Type | Description |
---|---|
SimpleAction | A SimpleAction object that is the Open Action. |
Remarks
The Open Action opens a file stored within the IFileData type property of the current object. A file is opened in an external application associated with the file’s extension. The IFileData property that stores the file to be opened is specified via the FileAttachmentAttribute applied to the current persistent object declaration.
To ascertain why the Open 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 Open Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.