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

CameraControl.SaveSettingsToRegistry(String) Method

Saves the video settings of the currently used capture device to the system registry.

Namespace: DevExpress.XtraEditors.Camera

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual bool SaveSettingsToRegistry(
    string path
)

#Parameters

Name Type Description
path String

A String value specifying the system registry path to which the video settings are saved.

#Returns

Type Description
Boolean

true if the operation is successfully completed; otherwise, false.

#Remarks

Use the SaveSettingsToRegistry method to save the video settings (see CameraControl.VideoSettings) of the currently used device (see CameraControl.Device) to the system registry. The settings can then be restored via the CameraControl.RestoreSettingsFromRegistry method.

For the path parameter you can define whole and partial registry keys. For example, if you define “Software\Company", the full path will be as follows: “HKEY_CURRENT_USER\Software\Company". To store the settings in a different root key, define the entire path in the following form “HKEY_LOCAL_MACHINE\Software\Company".

The values of the following video properties are preserved:

You can also save settings to a file in XML format using the CameraControl.SaveSettingsToXml method.

See Also