HotSpotCollectionEditor 类
定义
在 HotSpotCollection 或类似控件中提供 ImageMap 对象的组件编辑器。Provides a component editor for HotSpotCollection objects in an ImageMap or a similar control.
public ref class HotSpotCollectionEditor : System::ComponentModel::Design::CollectionEditor
public class HotSpotCollectionEditor : System.ComponentModel.Design.CollectionEditor
type HotSpotCollectionEditor = class
inherit CollectionEditor
Public Class HotSpotCollectionEditor
Inherits CollectionEditor
- 继承
注解
HotSpotCollectionEditor类提供一个用户界面,用于编辑 HotSpot HotSpotCollection 嵌入在或类似控件中的对象的元素 ImageMap 。The HotSpotCollectionEditor class provides a user interface for editing the HotSpot elements of the HotSpotCollection object that is embedded in an ImageMap or a similar control.
HotSpotCollectionEditor通过在可视化设计器的 "属性" 网格中的 "作用点" 属性上选择省略号按钮 (") " 来调用 。The HotSpotCollectionEditor is invoked by selecting the ellipsis button (…) on the HotSpots property in the visual designer's Properties grid.
CanSelectMultipleInstances方法始终返回 false ,指示在编辑器中一次只能选择一个对象。The CanSelectMultipleInstances method always returns false to indicate that only one object can be selected at a time in the editor. CreateNewItemTypes方法返回编辑器可以创建的类型的数组。The CreateNewItemTypes method returns an array of types that the editor can create. HelpTopic属性返回编辑器显示的帮助主题的名称。The HelpTopic property returns the name of the Help topic that the editor displays.
构造函数
| HotSpotCollectionEditor(Type) |
初始化 HotSpotCollectionEditor 类的新实例。Initializes a new instance of the HotSpotCollectionEditor class. |
属性
| CollectionItemType |
获取集合中每项的数据类型。Gets the data type of each item in the collection. (继承自 CollectionEditor) |
| CollectionType |
获取集合对象的数据类型。Gets the data type of the collection object. (继承自 CollectionEditor) |
| Context |
获取指示当前上下文的类型说明符。Gets a type descriptor that indicates the current context. (继承自 CollectionEditor) |
| HelpTopic |
获取要为 HotSpotCollectionEditor 对象显示的帮助主题。Gets the Help topic to display for the HotSpotCollectionEditor object. |
| IsDropDownResizable |
获取一个值,该值指示是否应由用户调整下拉编辑器的大小。Gets a value indicating whether drop-down editors should be resizable by the user. (继承自 UITypeEditor) |
| NewItemTypes |
获取可为此集合创建的项的可用类型。Gets the available types of items that can be created for this collection. (继承自 CollectionEditor) |
方法
| CancelChanges() |
取消对集合的更改。Cancels changes to the collection. (继承自 CollectionEditor) |
| CanRemoveInstance(Object) |
指示是否可以移除集合的初始成员。Indicates whether original members of the collection can be removed. (继承自 CollectionEditor) |
| CanSelectMultipleInstances() |
获取一个值,该值指示是否可以一次选择多个 HotSpot 集合元素。Gets a value indicating whether multiple HotSpot collection elements can be selected at one time. |
| CreateCollectionForm() |
创建新的窗体,以显示和编辑当前集合。Creates a new form to display and edit the current collection. (继承自 CollectionEditor) |
| CreateCollectionItemType() |
获取此集合包含的数据类型。Gets the data type that this collection contains. (继承自 CollectionEditor) |
| CreateInstance(Type) |
创建指定的集合项类型的新实例。Creates a new instance of the specified collection item type. (继承自 CollectionEditor) |
| CreateNewItemTypes() |
获取此集合编辑器能够创建的多个数据类型。Gets the multiple data types that the collection editor can create. |
| DestroyInstance(Object) |
销毁对象的指定实例。Destroys the specified instance of the object. (继承自 CollectionEditor) |
| EditValue(IServiceProvider, Object) |
使用 GetEditStyle() 方法所指示的编辑器样式编辑指定对象的值。Edits the value of the specified object using the editor style indicated by the GetEditStyle() method. (继承自 UITypeEditor) |
| EditValue(ITypeDescriptorContext, IServiceProvider, Object) |
使用指定的服务提供程序和上下文编辑指定对象的值。Edits the value of the specified object using the specified service provider and context. (继承自 CollectionEditor) |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetDisplayText(Object) |
检索给定列表项的显示文本。Retrieves the display text for the given list item. (继承自 CollectionEditor) |
| GetEditStyle() |
获取由 EditValue(IServiceProvider, Object) 方法使用的编辑器样式。Gets the editor style used by the EditValue(IServiceProvider, Object) method. (继承自 UITypeEditor) |
| GetEditStyle(ITypeDescriptorContext) |
获取 EditValue(ITypeDescriptorContext, IServiceProvider, Object) 方法使用的编辑样式。Gets the edit style used by the EditValue(ITypeDescriptorContext, IServiceProvider, Object) method. (继承自 CollectionEditor) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetItems(Object) |
获取包含指定集合的对象数组。Gets an array of objects containing the specified collection. (继承自 CollectionEditor) |
| GetObjectsFromInstance(Object) |
返回包含给定对象的列表。Returns a list containing the given object. (继承自 CollectionEditor) |
| GetPaintValueSupported() |
指示该编辑器是否支持绘制对象值的表示形式。Indicates whether this editor supports painting a representation of an object's value. (继承自 UITypeEditor) |
| GetPaintValueSupported(ITypeDescriptorContext) |
指示指定的上下文是否支持在指定的上下文内绘制对象值的表示形式。Indicates whether the specified context supports painting a representation of an object's value within the specified context. (继承自 UITypeEditor) |
| GetService(Type) |
获取请求的服务(如果该服务可用的话)。Gets the requested service, if it is available. (继承自 CollectionEditor) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| PaintValue(Object, Graphics, Rectangle) |
将指定对象值表示形式绘制到指定的画布上。Paints a representation of the value of the specified object to the specified canvas. (继承自 UITypeEditor) |
| PaintValue(PaintValueEventArgs) |
使用指定的 PaintValueEventArgs 绘制某个对象的值的表示形式。Paints a representation of the value of an object using the specified PaintValueEventArgs. (继承自 UITypeEditor) |
| SetItems(Object, Object[]) |
将指定数组设置为集合项。Sets the specified array as the items of the collection. (继承自 CollectionEditor) |
| ShowHelp() |
显示集合编辑器的默认帮助主题。Displays the default Help topic for the collection editor. (继承自 CollectionEditor) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |