IComponentDesignerStateService.GetState(IComponent, String) 方法
定义
获取由给定组件的键所指定的状态项。Gets a state item specified by the key for the given component.
public:
System::Object ^ GetState(System::ComponentModel::IComponent ^ component, System::String ^ key);
public object GetState (System.ComponentModel.IComponent component, string key);
abstract member GetState : System.ComponentModel.IComponent * string -> obj
Public Function GetState (component As IComponent, key As String) As Object
参数
- component
- IComponent
要为其检索设计器状态项的组件。The component for which to retrieve the designer state item.
- key
- String
设计器状态项的名称。The name of the designer state item.
返回
由 component 指定的 key 的设计器状态。The designer state for component specified by key.