The requested page is not available for the requested platform. You are viewing the content for Default platform.

FavoritePropertyExtension.RegisterExtensionGlobal(FavoritePropertyExtension) Method

Registers the specified extension to store favorite properties for all End-User Report Designers within the current application.

Namespace: DevExpress.XtraReports.Extensions

Assembly: DevExpress.XtraReports.v19.1.dll

Declaration

public static void RegisterExtensionGlobal(
    FavoritePropertyExtension instance
)
Public Shared Sub RegisterExtensionGlobal(
    instance As FavoritePropertyExtension
)

Parameters

Name Type Description
instance FavoritePropertyExtension

A FavoritePropertyExtension class descendant.

Remarks

Use the RegisterExtensionGlobal method to register your custom storage for favorite properties in the Report Designer.

The following code snippet demonstrates how to store the favorite 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