CompoundAction(Source, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the CompoundAction class.
public:
CompoundAction(Microsoft::VisualStudio::Package::Source ^ src, System::String ^ description);
public CompoundAction (Microsoft.VisualStudio.Package.Source src, string description);
new Microsoft.VisualStudio.Package.CompoundAction : Microsoft.VisualStudio.Package.Source * string -> Microsoft.VisualStudio.Package.CompoundAction
Public Sub New (src As Source, description As String)
Parameters
- description
- 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.