ContextItem 类
定义
表示一个必须从中派生所有上下文项的基类。Represents a base class from which all context items must derive. 此类为抽象类。This class is abstract.
public ref class ContextItem abstract
public abstract class ContextItem
type ContextItem = class
Public MustInherit Class ContextItem
- 继承
-
ContextItem
- 派生
注解
一个上下文项表示设计器中的一条暂时状态。A context item represents a piece of transient state in a designer. 上下文项由 ContextItemManager 管理,后者是 EditingContext 在直观地表示工作流模型时采用的 WorkflowDesigner 的一部分。Context items are managed by a ContextItemManager, which is part of the EditingContext employed by a WorkflowDesigner when representing the workflow model visually. ContextItemManager 由 Items 属性返回,其中包含在主机和设计器之间共享的数据。The ContextItemManager is returned by the Items property which contains the data that is shared between a host and the designer. 此数据提供挂钩到订阅和更改通知时所需的机制。This data provides the mechanism needed to hook into subscription and change notification.
构造函数
| ContextItem() |
启动 ContextItem 类的新实例。Initiates a new instance of the ContextItem class. |
属性
| ItemType |
在派生类中实现时,获取派生自编辑上下文类的项的类型。When implemented in a derived class, gets the type of item derived from the editing context class. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| OnItemChanged(EditingContext, ContextItem) |
表示一个方法,在将上下文项存储在上下文项管理器中之前,将对上下文项调用该方法。Represents a method that is called on the context item before it is stored in the context item manager. 上下文项管理器上的上一项将作为参数传递。The previous item in the context item manager is passed as a parameter. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |