CreateTextViewHostCallback Delegate
Namespace: Microsoft.VisualStudio.Data.Tools.Delta
Assembly: Microsoft.VisualStudio.Data.Tools.Delta (in Microsoft.VisualStudio.Data.Tools.Delta.dll)
Syntax
'Declaration
Public Delegate Sub CreateTextViewHostCallback ( _
dataModel As ITextDataModel, _
roles As ITextViewRoleSet, _
options As IEditorOptions, _
<OutAttribute> ByRef visualElement As UIElement, _
<OutAttribute> ByRef textViewHost As IWpfTextViewHost _
)
'Usage
Dim instance As New CreateTextViewHostCallback(AddressOf HandlerMethod)
public delegate void CreateTextViewHostCallback(
ITextDataModel dataModel,
ITextViewRoleSet roles,
IEditorOptions options,
out UIElement visualElement,
out IWpfTextViewHost textViewHost
)
public delegate void CreateTextViewHostCallback(
ITextDataModel^ dataModel,
ITextViewRoleSet^ roles,
IEditorOptions^ options,
[OutAttribute] UIElement^% visualElement,
[OutAttribute] IWpfTextViewHost^% textViewHost
)
type CreateTextViewHostCallback =
delegate of
dataModel:ITextDataModel *
roles:ITextViewRoleSet *
options:IEditorOptions *
visualElement:UIElement byref *
textViewHost:IWpfTextViewHost byref -> unit
JScript supports the use of delegates, but not the declaration of new ones.
Parameters
- dataModel
Type: ITextDataModel
- roles
Type: ITextViewRoleSet
- options
Type: IEditorOptions
- visualElement
Type: System.Windows..::..UIElement%
- textViewHost
Type: IWpfTextViewHost%