This topic has not yet been rated - Rate this topic

IVsCompoundAction Interface

Enables the creation of compound actions.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

[InterfaceTypeAttribute(1)] 
[GuidAttribute("B414D071-87BA-411A-9780-33FC7D87D882")] 
public interface IVsCompoundAction
/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("B414D071-87BA-411A-9780-33FC7D87D882") */ 
public interface IVsCompoundAction
InterfaceTypeAttribute(1) 
GuidAttribute("B414D071-87BA-411A-9780-33FC7D87D882") 
public interface IVsCompoundAction

This method is exposed by objects that allow the creation of compound actions. A compound action is a set of actions that are grouped into a single undo/redo unit. For example, if you call OpenCompoundAction on the view or buffer, perform a set of actions (for example, change text), and then call CloseCompoundAction, then all of the changes are placed in a single undo unit. The user can then choose Undo on the Edit menu, or presses CTRL+Z, and all of those changes will be rolled back together.

Notes to Implementers Objects that allow the creation of compound actions implement this interface when needing to enable a set of actions that are grouped in a single undo/redo unit.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ