ITextEditorFactoryService.CreateTextView ITextEditorFactoryService.CreateTextView ITextEditorFactoryService.CreateTextView ITextEditorFactoryService.CreateTextView ITextEditorFactoryService.CreateTextView ITextEditorFactoryService.CreateTextView Method

Definition

Overloads

CreateTextView() CreateTextView() CreateTextView() CreateTextView() CreateTextView() CreateTextView()

Creates an IWpfTextView on a newly created ITextBuffer having content type

Text
.

CreateTextView(ITextBuffer) CreateTextView(ITextBuffer) CreateTextView(ITextBuffer) CreateTextView(ITextBuffer) CreateTextView(ITextBuffer) CreateTextView(ITextBuffer)

Creates an IWpfTextView that displays the contents of textBuffer.

CreateTextView(ITextBuffer, ITextViewRoleSet) CreateTextView(ITextBuffer, ITextViewRoleSet) CreateTextView(ITextBuffer, ITextViewRoleSet) CreateTextView(ITextBuffer, ITextViewRoleSet)

Creates an IWpfTextView that displays the contents of textBuffer.

CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions)

Creates an IWpfTextView that displays the contents of viewModel.

CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions)

Creates an IWpfTextView that displays the contents of textBuffer.

CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions)

Creates an IWpfTextView that displays the contents of dataModel.

CreateTextView() CreateTextView() CreateTextView() CreateTextView() CreateTextView() CreateTextView()

Creates an IWpfTextView on a newly created ITextBuffer having content type

Text
.

public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ CreateTextView();
public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ CreateTextView();
Microsoft::VisualStudio::Text::Editor::IWpfTextView CreateTextView();
public Microsoft.VisualStudio.Text.Editor.IWpfTextView CreateTextView ();
abstract member CreateTextView : unit -> Microsoft.VisualStudio.Text.Editor.IWpfTextView
Public Function CreateTextView () As IWpfTextView
Returns

CreateTextView(ITextBuffer) CreateTextView(ITextBuffer) CreateTextView(ITextBuffer) CreateTextView(ITextBuffer) CreateTextView(ITextBuffer) CreateTextView(ITextBuffer)

Creates an IWpfTextView that displays the contents of textBuffer.

public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ CreateTextView(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ CreateTextView(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
Microsoft::VisualStudio::Text::Editor::IWpfTextView CreateTextView(Microsoft::VisualStudio::Text::ITextBuffer const & textBuffer);
public Microsoft.VisualStudio.Text.Editor.IWpfTextView CreateTextView (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member CreateTextView : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Editor.IWpfTextView
Public Function CreateTextView (textBuffer As ITextBuffer) As IWpfTextView
Parameters
textBuffer
ITextBuffer ITextBuffer ITextBuffer ITextBuffer ITextBuffer ITextBuffer

The ITextBuffer that provides the text for the view.

Returns
Exceptions

Remarks

An ITextBuffer can be displayed in multiple views. A trivial ITextDataModel will be constructed and an ITextViewModel will be constructed based on the IContentType of the textBuffer.

CreateTextView(ITextBuffer, ITextViewRoleSet) CreateTextView(ITextBuffer, ITextViewRoleSet) CreateTextView(ITextBuffer, ITextViewRoleSet) CreateTextView(ITextBuffer, ITextViewRoleSet)

Creates an IWpfTextView that displays the contents of textBuffer.

public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ CreateTextView(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer, Microsoft::VisualStudio::Text::Editor::ITextViewRoleSet ^ roles);
public Microsoft.VisualStudio.Text.Editor.IWpfTextView CreateTextView (Microsoft.VisualStudio.Text.ITextBuffer textBuffer, Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet roles);
abstract member CreateTextView : Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet -> Microsoft.VisualStudio.Text.Editor.IWpfTextView
Public Function CreateTextView (textBuffer As ITextBuffer, roles As ITextViewRoleSet) As IWpfTextView
Parameters
textBuffer
ITextBuffer ITextBuffer ITextBuffer ITextBuffer ITextBuffer ITextBuffer

The ITextBuffer that provides the text for the view.

Returns
Exceptions

Remarks

An ITextBuffer can be displayed in multiple views. A trivial ITextDataModel will be constructed and an ITextViewModel will be constructed based on the IContentType of the textBuffer and the roles.

CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions)

Creates an IWpfTextView that displays the contents of viewModel.

public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ CreateTextView(Microsoft::VisualStudio::Text::Editor::ITextViewModel ^ viewModel, Microsoft::VisualStudio::Text::Editor::ITextViewRoleSet ^ roles, Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ parentOptions);
public Microsoft.VisualStudio.Text.Editor.IWpfTextView CreateTextView (Microsoft.VisualStudio.Text.Editor.ITextViewModel viewModel, Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet roles, Microsoft.VisualStudio.Text.Editor.IEditorOptions parentOptions);
abstract member CreateTextView : Microsoft.VisualStudio.Text.Editor.ITextViewModel * Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet * Microsoft.VisualStudio.Text.Editor.IEditorOptions -> Microsoft.VisualStudio.Text.Editor.IWpfTextView
Public Function CreateTextView (viewModel As ITextViewModel, roles As ITextViewRoleSet, parentOptions As IEditorOptions) As IWpfTextView
Parameters
viewModel
ITextViewModel ITextViewModel ITextViewModel ITextViewModel ITextViewModel ITextViewModel

The ITextViewModel that provides the text buffers for the view.

parentOptions
IEditorOptions IEditorOptions IEditorOptions IEditorOptions IEditorOptions IEditorOptions

The options environment for the text view.

Returns
Exceptions

CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions)

Creates an IWpfTextView that displays the contents of textBuffer.

public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ CreateTextView(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer, Microsoft::VisualStudio::Text::Editor::ITextViewRoleSet ^ roles, Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ parentOptions);
public Microsoft.VisualStudio.Text.Editor.IWpfTextView CreateTextView (Microsoft.VisualStudio.Text.ITextBuffer textBuffer, Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet roles, Microsoft.VisualStudio.Text.Editor.IEditorOptions parentOptions);
abstract member CreateTextView : Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet * Microsoft.VisualStudio.Text.Editor.IEditorOptions -> Microsoft.VisualStudio.Text.Editor.IWpfTextView
Public Function CreateTextView (textBuffer As ITextBuffer, roles As ITextViewRoleSet, parentOptions As IEditorOptions) As IWpfTextView
Parameters
textBuffer
ITextBuffer ITextBuffer ITextBuffer ITextBuffer ITextBuffer ITextBuffer

The ITextBuffer that provides the text for the view.

parentOptions
IEditorOptions IEditorOptions IEditorOptions IEditorOptions IEditorOptions IEditorOptions

The options environment for the text view.

Returns
Exceptions

Remarks

An ITextBuffer can be displayed in multiple views. A trivial ITextDataModel will be constructed and an ITextViewModel will be constructed based on the IContentType of the textBuffer and the roles.

CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions) CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions)

Creates an IWpfTextView that displays the contents of dataModel.

public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ CreateTextView(Microsoft::VisualStudio::Text::ITextDataModel ^ dataModel, Microsoft::VisualStudio::Text::Editor::ITextViewRoleSet ^ roles, Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ parentOptions);
public Microsoft.VisualStudio.Text.Editor.IWpfTextView CreateTextView (Microsoft.VisualStudio.Text.ITextDataModel dataModel, Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet roles, Microsoft.VisualStudio.Text.Editor.IEditorOptions parentOptions);
abstract member CreateTextView : Microsoft.VisualStudio.Text.ITextDataModel * Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet * Microsoft.VisualStudio.Text.Editor.IEditorOptions -> Microsoft.VisualStudio.Text.Editor.IWpfTextView
Public Function CreateTextView (dataModel As ITextDataModel, roles As ITextViewRoleSet, parentOptions As IEditorOptions) As IWpfTextView
Parameters
dataModel
ITextDataModel ITextDataModel ITextDataModel ITextDataModel ITextDataModel ITextDataModel

The ITextDataModel that provides the text buffers over which an ITextViewModel will be built for the view.

parentOptions
IEditorOptions IEditorOptions IEditorOptions IEditorOptions IEditorOptions IEditorOptions

The options environment for the text view.

Returns
Exceptions

Remarks

An ITextDataModel can be displayed in multiple views. An ITextViewModel will be constructed based on the IContentType of the dataModel and the roles.

Applies to