UndoEngine.UndoUnit 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
封装用户可以撤消的工作单元。
protected: ref class UndoEngine::UndoUnit
	protected class UndoEngine.UndoUnit
	Protected Class UndoEngine.UndoUnit
		- 继承
 - 
				UndoEngine.UndoUnit
 
注解
类 UndoEngine.UndoUnit 是内部 UndoEngine 的嵌套类,用于封装用户可以撤消的操作。 默认 UndoEngine.UndoUnit 实现监视更改通知,并为每个更改生成事件列表。 它使用 IDesignerSerializationService保存这些事件。 通过UndoEngine.UndoUnit多种public virtual方法直接从 接收更改UndoEngine的事件通知。 可以从 派生 UndoEngine.UndoUnit 并执行任何其他逻辑。 如果需要,可以完全绕过默认 UndoEngine.UndoUnit 实现。
构造函数
| UndoEngine.UndoUnit(UndoEngine, String) | 
		 初始化 UndoEngine.UndoUnit 类的新实例。  | 
        	
属性
| IsEmpty | 
		 获取一个值,该值指示 UndoEngine.UndoUnit 是否不包含事件。  | 
        	
| Name | 
		 获取 UndoEngine.UndoUnit 的名称。  | 
        	
| UndoEngine | 
		 获取父 UndoEngine。  | 
        	
方法
| Close() | 
		 接收来自撤消引擎的调用以关闭此单元。  | 
        	
| ComponentAdded(ComponentEventArgs) | 
		 接收来自 UndoEngine 的调用以响应 ComponentAdded 事件。  | 
        	
| ComponentAdding(ComponentEventArgs) | 
		 接收来自 UndoEngine 的调用以响应 ComponentAdding 事件。  | 
        	
| ComponentChanged(ComponentChangedEventArgs) | 
		 接收来自 UndoEngine 的调用以响应 ComponentChanged 事件。  | 
        	
| ComponentChanging(ComponentChangingEventArgs) | 
		 接收来自 UndoEngine 的调用以响应 ComponentChanging 事件。  | 
        	
| ComponentRemoved(ComponentEventArgs) | 
		 接收来自 UndoEngine 的调用以响应 ComponentRemoved 事件。  | 
        	
| ComponentRemoving(ComponentEventArgs) | 
		 接收来自 UndoEngine 的调用以响应 ComponentRemoving 事件。  | 
        	
| ComponentRename(ComponentRenameEventArgs) | 
		 接收来自 UndoEngine 的调用以响应 ComponentRename 事件。  | 
        	
| Equals(Object) | 
		 确定指定对象是否等于当前对象。 (继承自 Object) | 
        	
| GetHashCode() | 
		 作为默认哈希函数。 (继承自 Object) | 
        	
| GetService(Type) | 
		 获取所请求服务的实例。  | 
        	
| GetType() | 
		 获取当前实例的 Type。 (继承自 Object) | 
        	
| MemberwiseClone() | 
		 创建当前 Object 的浅表副本。 (继承自 Object) | 
        	
| ToString() | 
		 返回 String,它表示单元的当前名称。  | 
        	
| Undo() | 
		 执行撤消或重复操作。  | 
        	
| UndoCore() | 
		 由 Undo() 调用以执行撤消操作。  |