ITextViewModelProvider::CreateTextViewModel Method (ITextDataModel^, ITextViewRoleSet^)

 

Creates an ITextViewModel for the given ITextDataModel.

Namespace:   Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

ITextViewModel^ CreateTextViewModel(
	ITextDataModel^ dataModel,
	ITextViewRoleSet^ roles
)

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 null if the text view model cannot be created.

Return to top
Show: