Skip to main content
A newer version of this page is available.

Watermark.SaveToRegistry(String) Method

Saves the current watermark to the registry.

Namespace: DevExpress.XtraPrinting.Drawing

Assembly: DevExpress.Printing.v22.1.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design

Declaration

public void SaveToRegistry(
    string path
)

Parameters

Name Type Description
path String

A String value specifying the registry path at which to save the watermark.

Remarks

The SaveToRegistry method saves the values of all the Watermark‘s properties to the registry. Then, to restore the watermark from the registry, use the Watermark.RestoreFromRegistry method.

The path parameter contains the registry key. You are allowed to define whole and partial registry keys. For instance, if you define a partial key, “Software\MyCompany\MyTool" the full path will be as follows: “HKEY_CURRENT_USER\Software\MyCompany\MyTool". If you wish to store a watermark in another root key, you should define the entire path, for instance: “HKEY_LOCAL_MACHINE\Software\MyCompany\MyTool".

See Also