TreeNodeCollectionEditor.GetEditStyle(ITypeDescriptorContext) 方法
定义
public:
override System::Drawing::Design::UITypeEditorEditStyle GetEditStyle(System::ComponentModel::ITypeDescriptorContext ^ context);
public override System.Drawing.Design.UITypeEditorEditStyle GetEditStyle (System.ComponentModel.ITypeDescriptorContext context);
override this.GetEditStyle : System.ComponentModel.ITypeDescriptorContext -> System.Drawing.Design.UITypeEditorEditStyle
Public Overrides Function GetEditStyle (context As ITypeDescriptorContext) As UITypeEditorEditStyle
参数
- context
- ITypeDescriptorContext
可用于获取附加上下文信息的 ITypeDescriptorContext。An ITypeDescriptorContext that can be used to gain additional context information.
返回
一个 UITypeEditorEditStyle 值,表示 EditValue 方法使用的编辑器样式。A UITypeEditorEditStyle value that indicates the style of editor used by the EditValue method. 如果 UITypeEditor 不支持此方法,则 GetEditStyle 将返回 None。If the UITypeEditor does not support this method, then GetEditStyle will return None.