PropertyGrid.IComPropertyBrowser.LoadState(RegistryKey) Method

Definition

Loads user states from the registry into the PropertyGrid control. For a description of this member, see LoadState(RegistryKey).

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

Parameters

optRootkey
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