Skip to main content
.NET 6.0+

FileTypeFilterAttribute.GetExtensions() Method

Returns the list of file extensions associated with the current file type filter.

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.Persistent.Base.v23.2.dll

Declaration

public List<string> GetExtensions()

Returns

Type Description
List<String>

A List<String> object which specifies file extensions associated with the current file type filter.

Remarks

By default, this method returns a list of strings, sorted using the List<T>.Sort method. To disable this and preserve the initial order of items, set the static DevExpress.ExpressApp.FileAttachments.Win.FileTypeFiltersLogic.AllowSortExtensions property to false. You can initialize this property before the XafApplication.Setup method is called in the Program.cs (Program.vb) file.

See Also