Share via


ExpansionProvider Constructor

Initializes a new instance of the ExpansionProvider class.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  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)

Syntax

'Declaration
Public Sub New ( _
    src As Source _
)
public ExpansionProvider(
    Source src
)
public:
ExpansionProvider(
    Source^ src
)
new : 
        src:Source -> ExpansionProvider
public function ExpansionProvider(
    src : Source
)

Parameters

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.

.NET Framework Security

See Also

Reference

ExpansionProvider Class

Microsoft.VisualStudio.Package Namespace