PropertyGrid.IComPropertyBrowser.LoadState(RegistryKey) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将用户状态从注册表加载到控件中 PropertyGrid 。 有关此成员的说明,请参阅 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
参数
- optRootkey
- RegistryKey
包含用户状态的注册表项。
实现
注解
此成员是显式接口成员实现。 仅当实例强制转换为PropertyGrid接口时IComPropertyBrowser,才能使用它。
Visual Studio 2005 会将某些 PropertyGrid 控件状态(如 PropertySort 和 HelpVisible 属性)保存到注册表,并在下次用户运行应用程序时加载它们。