Condividi tramite


IVsCompoundAction.OpenCompoundAction Method

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

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Dichiarazione
Function OpenCompoundAction ( _
    pszDescription As String _
) As Integer
'Utilizzo
Dim instance As IVsCompoundAction
Dim pszDescription As String
Dim returnValue As Integer

returnValue = instance.OpenCompoundAction(pszDescription)
int OpenCompoundAction(
    string pszDescription
)
int OpenCompoundAction(
    [InAttribute] String^ pszDescription
)
abstract OpenCompoundAction : 
        pszDescription:string -> int 
function OpenCompoundAction(
    pszDescription : String
) : int

Parameters

  • pszDescription
    Type: System.String
    Pointer to a null terminated string containing the description.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsCompoundAction::OpenCompoundAction(
   [in] const WCHAR *pszDescription
);

.NET Framework Security

See Also

Reference

IVsCompoundAction Interface

IVsCompoundAction Members

Microsoft.VisualStudio.TextManager.Interop Namespace