ITextViewModelProvider.CreateTextViewModel Method
Creates an ITextViewModel for the given ITextDataModel.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Dichiarazione
Function CreateTextViewModel ( _
dataModel As ITextDataModel, _
roles As ITextViewRoleSet _
) As ITextViewModel
ITextViewModel CreateTextViewModel(
ITextDataModel dataModel,
ITextViewRoleSet roles
)
ITextViewModel^ CreateTextViewModel(
ITextDataModel^ dataModel,
ITextViewRoleSet^ roles
)
abstract CreateTextViewModel :
dataModel:ITextDataModel *
roles:ITextViewRoleSet -> ITextViewModel
function CreateTextViewModel(
dataModel : ITextDataModel,
roles : ITextViewRoleSet
) : ITextViewModel
Parameters
- dataModel
Type: Microsoft.VisualStudio.Text.ITextDataModel
The ITextDataModel for which to create the ITextViewModel.
- roles
Type: Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet
The ITextViewRoleSet for the view that is about to be created.
Return Value
Type: Microsoft.VisualStudio.Text.Editor.ITextViewModel
The ITextViewModel created for dataModel, or nulla null reference (Nothing in Visual Basic) if the text view model cannot be created.
.NET Framework Security
- 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.