Sdílet prostřednictvím


IVsCompoundAction Interface

Definition

Enables the creation of compound actions.

public interface class IVsCompoundAction
public interface class IVsCompoundAction
__interface IVsCompoundAction
[System.Runtime.InteropServices.Guid("B414D071-87BA-411A-9780-33FC7D87D882")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsCompoundAction
[System.Runtime.InteropServices.Guid("B414D071-87BA-411A-9780-33FC7D87D882")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsCompoundAction
[<System.Runtime.InteropServices.Guid("B414D071-87BA-411A-9780-33FC7D87D882")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsCompoundAction = interface
[<System.Runtime.InteropServices.Guid("B414D071-87BA-411A-9780-33FC7D87D882")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsCompoundAction = interface
Public Interface IVsCompoundAction
Attributes

Remarks

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.

Methods

AbortCompoundAction()

Aborts a compound action.

CloseCompoundAction()

Closes a compound action and sets the endpoint of a set of actions to be grouped in a single undo/redo unit.

FlushEditActions()

Updates the various text layers (outlining, word wrap, and so on) when called.

OpenCompoundAction(String)

Opens a compound action and sets the starting point of a set of actions to be grouped in a single undo/redo unit.

Applies to