ExpansionProvider(Source) Constructor

Definition

Initializes a new instance of the ExpansionProvider class.

public:
 ExpansionProvider(Microsoft::VisualStudio::Package::Source ^ src);
public ExpansionProvider (Microsoft.VisualStudio.Package.Source src);
new Microsoft.VisualStudio.Package.ExpansionProvider : Microsoft.VisualStudio.Package.Source -> Microsoft.VisualStudio.Package.ExpansionProvider
Public Sub New (src As Source)

Parameters

src
Source

[in] A Source object describing the source that this expansion provider supports.

Remarks

The base method obtains the IVsTextLines object returned from the GetTextLines method on the Source object and then casts the IVsTextLines object to an IVsExpansion object. If successful, the IVsTextLines object supports insertion of code snippets (which is done through the IVsExpansion interface). The rest of the methods in the ExpansionProvider class assume the IVsExpansion object was successfully obtained.

Applies to