Skip to main content

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

FavoritePropertyDirectoryExtension(String) Constructor

Initializes a new instance of the FavoritePropertyDirectoryExtension class with the specified full file path.

Namespace: DevExpress.XtraReports.Extensions

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

public FavoritePropertyDirectoryExtension(
    string path
)

#Parameters

Name Type Description
path String

A String value that specifies the full path to the file where favorite properties should be saved.

#Remarks

The following code snippet demonstrates how to store the favorites list in the directory with the application’s executable file.

using System.Windows.Forms;
using System.IO;
using DevExpress.XtraReports.Extensions;

static class Program {
    static void Main() {
        // ...
        string path = Path.Combine(Application.StartupPath, "FavoriteProperties.xml");
        FavoritePropertyExtension.RegisterExtensionGlobal(new FavoritePropertyDirectoryExtension(path));
    }
}

See the following topics for more information:

See Also