RepositoryItemPictureEdit.OpenFileDialogFilter Property
Gets or sets a custom filter for the Open File dialog.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[DefaultValue("")]
[DXCategory("Behavior")]
public string OpenFileDialogFilter { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
The Open File dialog’s custom filter. If this property is set to an empty string, the dialog uses a default filter. |
#Remarks
A user can load and save images at runtime via the context menu’s Load
and Save
commands (see ShowMenu), which invoke the ‘Open File’ and ‘Save File’ dialogs.
The OpenFileDialogFilter and SaveFileDialogFilter properties allow you to specify custom filters for these dialogs.
pictureEdit1.Properties.OpenFileDialogFilter = "WebP Files |*.webp|" + "Portable Network Graphics Format (*.png)|*.png" ;
Note
Note that the Picture
See the FileDialog.Filter topic for information on how to set dialog filters.