ITextViewModelProvider.CreateTextViewModel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.