TableRowsCollectionEditor 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供用于编辑表中的行的用户界面。
public ref class TableRowsCollectionEditor : System::ComponentModel::Design::CollectionEditorpublic class TableRowsCollectionEditor : System.ComponentModel.Design.CollectionEditortype TableRowsCollectionEditor = class
    inherit CollectionEditorPublic Class TableRowsCollectionEditor
Inherits CollectionEditor- 继承
示例
下面的代码示例使用 EditorAttribute 将 类和 UITypeEditor 类 (集合编辑器的基类) 与自定义TestRows属性相关联TableRowsCollectionEditor。
private TableRowCollection rows = null;
// Associate the TableRowsCollectionEditor with the TestRows. 
[EditorAttribute(typeof(System.Web.UI.Design.WebControls.
   TableRowsCollectionEditor),
   typeof(UITypeEditor))]
public TableRowCollection TestRows
{
    get { return rows; }
} // TestRows
Private rows As TableRowCollection
' Associate the TableRowsCollectionEditor with the TestRows.
<EditorAttribute( GetType(System.Web.UI.Design.WebControls. _
    TableRowsCollectionEditor), _
    GetType(UITypeEditor))> _
Public ReadOnly Property TestRows() As TableRowCollection
    Get
        Return rows
    End Get
End Property ' TestRows
构造函数
| TableRowsCollectionEditor(Type) | 初始化 TableRowsCollectionEditor 类的新实例。 | 
属性
| CollectionItemType | 获取集合中每项的数据类型。(继承自 CollectionEditor) | 
| CollectionType | 获取集合对象的数据类型。(继承自 CollectionEditor) | 
| Context | 获取指示当前上下文的类型说明符。(继承自 CollectionEditor) | 
| HelpTopic | 在用户按下编辑器对话框中的“帮助”按钮或 F1 键时,获取“帮助”关键字以显示“帮助”主题或主题列表。(继承自 CollectionEditor) | 
| IsDropDownResizable | 获取一个值,该值指示是否应由用户调整下拉编辑器的大小。(继承自 UITypeEditor) | 
| NewItemTypes | 获取可为此集合创建的项的可用类型。(继承自 CollectionEditor) |