PropertyGrid.IComPropertyBrowser.SaveState(RegistryKey) Method

Definition

Saves user states from the PropertyGrid control to the registry. For a description of this member, see SaveState(RegistryKey).

 virtual void System.Windows.Forms.ComponentModel.Com2Interop.IComPropertyBrowser.SaveState(Microsoft::Win32::RegistryKey ^ optRoot) = System::Windows::Forms::ComponentModel::Com2Interop::IComPropertyBrowser::SaveState;
void IComPropertyBrowser.SaveState(Microsoft.Win32.RegistryKey optRoot);
abstract member System.Windows.Forms.ComponentModel.Com2Interop.IComPropertyBrowser.SaveState : Microsoft.Win32.RegistryKey -> unit
override this.System.Windows.Forms.ComponentModel.Com2Interop.IComPropertyBrowser.SaveState : Microsoft.Win32.RegistryKey -> unit
Sub SaveState (optRoot As RegistryKey) Implements IComPropertyBrowser.SaveState

Parameters

optRoot
RegistryKey

The registry key that contains the user states.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the PropertyGrid instance is cast to an IComPropertyBrowser interface.

Visual Studio 2005 saves some of the PropertyGrid control states, such as the PropertySort and HelpVisible properties, to the registry and loads them the next time the user runs the application.

Applies to