CompoundAction Constructor (Source^, String^)
Visual Studio 2015
Initializes a new instance of the CompoundAction class.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- src
-
Type:
Microsoft.VisualStudio.Package::Source^
[in] The Source object that represents the source file to be edited.
- description
-
Type:
System::String^
[in] A string containing a description to label the undo action.
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.
Show: