Export (0) Print
Expand All

PropertyGrid.IComPropertyBrowser.LoadState Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

void IComPropertyBrowser.LoadState(
	RegistryKey optRoot


Type: Microsoft.Win32.RegistryKey

The registry key that contains the user states.



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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft