Compartilhar via


CompoundAction Constructor

Initializes a new instance of the CompoundAction class.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaração
Public Sub New ( _
    src As Source, _
    description As String _
)
public CompoundAction(
    Source src,
    string description
)

Parameters

  • description
    Type: System.String
    [in] A string containing a description to label the undo action.

Remarks

The constructor caches the Source object, obtains an IVsTextLines object by calling the GetTextLines method on the Source object, obtains the IVsCompoundAction interface from the IVsTextLines object, calls the OpenCompoundAction method on the IVsCompoundAction interface, and finally suspends the colorizer by calling the Suspend method on the Colorizer object obtained by calling the GetColorizer method on the Source object.

.NET Framework Security

See Also

Reference

CompoundAction Class

Microsoft.VisualStudio.Package Namespace