Partager via


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

'Déclaration
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

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

See Also

Reference

ITextViewModelProvider Interface

Microsoft.VisualStudio.Text.Editor Namespace