Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FileAttachmentController.OpenAction Property

Provides access to the FileAttachmentController‘s Open Action.

Namespace: DevExpress.ExpressApp.FileAttachments.Win

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

#Declaration

public SimpleAction OpenAction { get; }

#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.

FileAttach_OpenAction

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.

See Also