PropertyGrid.IComPropertyBrowser.LoadState(RegistryKey) 方法

定義

將使用者狀態從登錄載入 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);
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 控制項狀態,例如 PropertySortHelpVisible 屬性儲存至登錄,並在使用者下次執行應用程式時載入它們。

適用於