Udostępnij za pośrednictwem


CompoundAction(Source, String) Constructor

Definition

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

src
Source

[in] The Source object that represents the source file to be edited.

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.

Applies to