DataListComponentEditor 类
定义
public ref class DataListComponentEditor : System::Web::UI::Design::WebControls::BaseDataListComponentEditor
public class DataListComponentEditor : System.Web.UI.Design.WebControls.BaseDataListComponentEditor
type DataListComponentEditor = class
inherit BaseDataListComponentEditor
Public Class DataListComponentEditor
Inherits BaseDataListComponentEditor
- 继承
-
DataListComponentEditor
示例
下面的代码示例使用 EditorAttribute 属性将此编辑器与扩展类的类相关联 DataList 。The following code example uses the EditorAttribute attribute to associate this editor with a class that extends the DataList class.
public override void Initialize(IComponent component)
{
simpleGView = (SimpleGridView)component;
base.Initialize(component);
}
Public Overrides Sub Initialize(ByVal component As IComponent)
simpleGView = CType(component, SimpleGridView)
MyBase.Initialize(component)
End Sub
注解
组件编辑器提供了一个用户界面 (UI) 用于编辑控件的属性。A component editor provides a user interface (UI) for editing the properties of a control.
构造函数
| DataListComponentEditor() |
初始化 DataListComponentEditor 类的新实例。Initializes a new instance of the DataListComponentEditor class. |
| DataListComponentEditor(Int32) |
初始化 DataListComponentEditor 类的新实例,并将其初始页设置为指定索引。Initializes a new instance of the DataListComponentEditor 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() |
获取当前实例的 Type。Gets 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) |