DataGridColumnCollectionEditor.GetEditStyle(ITypeDescriptorContext) 方法

定義

使用指定的 ITypeDescriptorContext 物件,取得與這個編輯器關聯的編輯樣式。Gets the editing style associated with this editor, using the specified ITypeDescriptorContext object.

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 物件,表示要編輯之物件的內容。The ITypeDescriptorContext object that indicates the context of the object being edited.

傳回

UITypeEditorEditStyle

UITypeEditorEditStyle 值,表示這個編輯器的編輯樣式。The UITypeEditorEditStyle value representing the editing style of this editor. 預設值為 ModalThe default is Modal.

備註

一律會傳回值 ModalAlways returns the value Modal.

適用於

另請參閱