DataGridComponentEditor 类

定义

DataGrid Web 服务器控件提供组件编辑器。Provides a component editor for a DataGrid Web server control.

public ref class DataGridComponentEditor : System::Web::UI::Design::WebControls::BaseDataListComponentEditor
public class DataGridComponentEditor : System.Web.UI.Design.WebControls.BaseDataListComponentEditor
type DataGridComponentEditor = class
    inherit BaseDataListComponentEditor
Public Class DataGridComponentEditor
Inherits BaseDataListComponentEditor
继承

示例

下面的代码示例使用 EditorAttribute 属性将此编辑器与扩展类的类相关联 DataGridThe following code example uses the EditorAttribute attribute to associate this editor with a class that extends the DataGrid class.

Imports System.ComponentModel
Imports System.Web.UI.WebControls
Imports System.Web.UI.Design.WebControls
Imports System.Security.Permissions

Namespace Examples.AspNet

    ' Associate the SimpleDataList class with its designer using the
    ' DesignerAttribute class.

    ' Associate the SimpleDataList class with the DataListComponentEditor
    ' object using the EditorAttribute class.

    <DesignerAttribute( _
        GetType(SimpleDataListDesigner)), _
    EditorAttribute(GetType(DataListComponentEditor), _
        GetType(ComponentEditor)) _
     > _
    Public Class SimpleDataList
        Inherits DataList

        ' To customize the DataList class, insert code here.

    End Class
End Namespace

注解

组件编辑器提供了一个用户界面 (UI) 用于编辑控件的属性 DataGridA component editor provides a user interface (UI) for editing the properties of a DataGrid control.

构造函数

DataGridComponentEditor()

初始化 DataGridComponentEditor 类的新实例,并将其初始页设置为 0。Initializes a new instance of the DataGridComponentEditor class and sets its initial page to 0.

DataGridComponentEditor(Int32)

初始化 DataGridComponentEditor 类的新实例,并将其初始页设置为指定索引。Initializes a new instance of the DataGridComponentEditor class and sets its initial page to the specified index.

方法

EditComponent(ITypeDescriptorContext, Object)

使用指定的上下文信息创建编辑器窗口,该窗口允许用户编辑指定的组件。Creates an editor window that allows the user to edit the specified component, using the specified context information.

(继承自 WindowsFormsComponentEditor)
EditComponent(ITypeDescriptorContext, Object, IWin32Window)

使用指定的上下文说明符和父窗口编辑指定的组件。Edits the specified component by using the specified context descriptor and parent window.

(继承自 BaseDataListComponentEditor)
EditComponent(Object)

编辑该组件并返回一个表示是否修改了该组件的值。Edits the component and returns a value indicating whether the component was modified.

(继承自 ComponentEditor)
EditComponent(Object, IWin32Window)

使用拥有指定组件的指定窗口来创建编辑器窗口,该窗口允许用户编辑该指定组件。Creates an editor window that allows the user to edit the specified component, using the specified window that owns the component.

(继承自 WindowsFormsComponentEditor)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetComponentEditorPages()

获取与可使用此编辑器进行编辑的页相对应的 Type 对象的数组。Gets an array of Type objects corresponding to the pages that can be edited using this editor.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetInitialComponentEditorPageIndex()

获取要在组件编辑器中显示的初始页面的索引。Gets the index of the initial page to display in the component editor.

(继承自 BaseDataListComponentEditor)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅