TreeNodeCollectionEditor.GetEditStyle(ITypeDescriptorContext) 方法

定义

检索 EditValue 方法所使用的编辑样式。Retrieves the edit style that is used by the EditValue method.

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

可用于获取附加上下文信息的 ITypeDescriptorContextAn ITypeDescriptorContext that can be used to gain additional context information.

返回

UITypeEditorEditStyle

一个 UITypeEditorEditStyle 值,表示 EditValue 方法使用的编辑器样式。A UITypeEditorEditStyle value that indicates the style of editor used by the EditValue method. 如果 UITypeEditor 不支持此方法,则 GetEditStyle 将返回 NoneIf the UITypeEditor does not support this method, then GetEditStyle will return None.

适用于

另请参阅