TreeList.SaveLayoutToRegistry(String, OptionsLayoutBase) Method
Saves the control’s layout to the specified system registry path, using the specified options.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
path | String | A string value specifying the system registry path. |
options | OptionsLayoutBase | An OptionsLayoutTreeList object that specifies which Tree List options must be saved. Or, a OptionsLayoutBase.FullLayout object, to save all the settings. |
Remarks
Use the SaveLayoutToRegistry method to save the TreeList’s layout to the system registry. You can restore these settings via a TreeList.RestoreLayoutFromRegistry method call.
The control’s layout is saved to the path specified by the path parameter. 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 layout in a different root key, you should define the entire path, for instance: “HKEY_LOCAL_MACHINE\Software\MyCompany\MyTool".
Tip
You can utilize the Persistence Behavior or Workspace Manager component to save and restore layouts for all supported DevExpress controls at once.