DataGridComponentEditor 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供網頁 DataGrid 伺服器控制元件編輯器。
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
- 繼承
-
DataGridComponentEditor
範例
以下程式碼範例使用 屬性 EditorAttribute 將此編輯器與擴展該 DataGrid 類別的類別關聯起來。
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),用以編輯控制項的 DataGrid 屬性。
建構函式
| 名稱 | Description |
|---|---|
| DataGridComponentEditor() |
初始化該類別的新實例 DataGridComponentEditor ,並將其初始頁面設為 0。 |
| DataGridComponentEditor(Int32) |
初始化該類別的新實例 DataGridComponentEditor ,並將其初始頁面設為指定的索引。 |
方法
| 名稱 | Description |
|---|---|
| EditComponent(ITypeDescriptorContext, Object, IWin32Window) |
透過指定的上下文描述符和父視窗來編輯指定的元件。 (繼承來源 BaseDataListComponentEditor) |
| EditComponent(ITypeDescriptorContext, Object) |
建立一個編輯器視窗,讓使用者能使用指定的上下文資訊編輯指定的元件。 (繼承來源 WindowsFormsComponentEditor) |
| EditComponent(Object, IWin32Window) |
建立一個編輯器視窗,讓使用者使用擁有該元件的指定視窗來編輯指定的元件。 (繼承來源 WindowsFormsComponentEditor) |
| EditComponent(Object) |
編輯該元件並回傳一個值,表示該元件是否被修改。 (繼承來源 ComponentEditor) |
| Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
| GetComponentEditorPages() |
會獲得一個對應頁面的物件陣列 Type ,可用此編輯器編輯。 |
| GetHashCode() |
做為預設哈希函式。 (繼承來源 Object) |
| GetInitialComponentEditorPageIndex() |
取得初始頁面的索引,並顯示在元件編輯器中。 (繼承來源 BaseDataListComponentEditor) |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
傳回表示目前 物件的字串。 (繼承來源 Object) |