次の方法で共有


IDifferenceTextViewModelProvider.CreateTextViewModel Method

Definition

Creates an ITextViewModel for the given ITextDataModel.

public:
 Microsoft::VisualStudio::Text::Differencing::IDifferenceTextViewModel ^ CreateTextViewModel(Microsoft::VisualStudio::Text::Differencing::IWpfDifferenceViewer ^ viewer, Microsoft::VisualStudio::Text::Differencing::DifferenceViewType viewType, Microsoft::VisualStudio::Text::ITextDataModel ^ dataModel);
public Microsoft.VisualStudio.Text.Differencing.IDifferenceTextViewModel CreateTextViewModel (Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer viewer, Microsoft.VisualStudio.Text.Differencing.DifferenceViewType viewType, Microsoft.VisualStudio.Text.ITextDataModel dataModel);
abstract member CreateTextViewModel : Microsoft.VisualStudio.Text.Differencing.IWpfDifferenceViewer * Microsoft.VisualStudio.Text.Differencing.DifferenceViewType * Microsoft.VisualStudio.Text.ITextDataModel -> Microsoft.VisualStudio.Text.Differencing.IDifferenceTextViewModel
Public Function CreateTextViewModel (viewer As IWpfDifferenceViewer, viewType As DifferenceViewType, dataModel As ITextDataModel) As IDifferenceTextViewModel

Parameters

viewer
IWpfDifferenceViewer

The IWpfDifferenceViewer in which the views are being created.

viewType
DifferenceViewType

The DifferenceViewType of the view being created.

dataModel
ITextDataModel

The ITextDataModel for which to create the ITextViewModel.

Returns

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

Applies to