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