Initializes a new instance of EditorControl with the supplied buffer and control and the main service provider.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Sub New ( _
site As IServiceProvider, _
buffer As IVsTextLines, _
ctrl As Control _
)
'使用
Dim site As IServiceProvider
Dim buffer As IVsTextLines
Dim ctrl As Control
Dim instance As New EditorControl(site, buffer, _
ctrl)
public EditorControl(
IServiceProvider site,
IVsTextLines buffer,
Control ctrl
)
public:
EditorControl(
IServiceProvider^ site,
IVsTextLines^ buffer,
Control^ ctrl
)
public function EditorControl(
site : IServiceProvider,
buffer : IVsTextLines,
ctrl : Control
)
Parameters
site
Type: System.IServiceProviderThe main IServiceProvider.
buffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLinesThe IVsTextLines buffer.
ctrl
Type: System.Windows.Forms.ControlThe associated Control.
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.