Initializes the Colorizer class.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Sub New ( _
svc As LanguageService, _
buffer As IVsTextLines, _
scanner As IScanner _
)
'使用
Dim svc As LanguageService
Dim buffer As IVsTextLines
Dim scanner As IScanner
Dim instance As New Colorizer(svc, buffer, _
scanner)
public Colorizer(
LanguageService svc,
IVsTextLines buffer,
IScanner scanner
)
public:
Colorizer(
LanguageService^ svc,
IVsTextLines^ buffer,
IScanner^ scanner
)
public function Colorizer(
svc : LanguageService,
buffer : IVsTextLines,
scanner : IScanner
)
Parameters
svc
Type: Microsoft.VisualStudio.Package.LanguageService[in] The language service.
buffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines[in] The IVsTextLines object that serves as the buffer for the colorizer.
scanner
Type: Microsoft.VisualStudio.Package.IScanner[in] The IScanner object that handles all parsing operations associated with syntax highlighting.
Remarks
The IScanner object is obtained from the GetScanner method.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.