ITextViewModelProvider.CreateTextViewModel Method

Definition

Creates an ITextViewModel for the given ITextDataModel.

public:
 Microsoft::VisualStudio::Text::Editor::ITextViewModel ^ CreateTextViewModel(Microsoft::VisualStudio::Text::ITextDataModel ^ dataModel, Microsoft::VisualStudio::Text::Editor::ITextViewRoleSet ^ roles);
public Microsoft.VisualStudio.Text.Editor.ITextViewModel CreateTextViewModel (Microsoft.VisualStudio.Text.ITextDataModel dataModel, Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet roles);
abstract member CreateTextViewModel : Microsoft.VisualStudio.Text.ITextDataModel * Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet -> Microsoft.VisualStudio.Text.Editor.ITextViewModel
Public Function CreateTextViewModel (dataModel As ITextDataModel, roles As ITextViewRoleSet) As ITextViewModel

Parameters

dataModel
ITextDataModel

The ITextDataModel for which to create the ITextViewModel.

roles
ITextViewRoleSet

The ITextViewRoleSet for the view that is about to be created.

Returns

The ITextViewModel created for dataModel, or null if the text view model cannot be created.

Applies to