ITextEditorFactoryService Interface

Creates editor views.

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

Syntax

'Declaration
Public Interface ITextEditorFactoryService
public interface ITextEditorFactoryService
public interface class ITextEditorFactoryService
type ITextEditorFactoryService =  interface end
public interface ITextEditorFactoryService

The ITextEditorFactoryService type exposes the following members.

Properties

  Name Description
Public property AllPredefinedRoles The set of all predefined text view roles.
Public property DefaultRoles The set of roles that are used when creating a text view without specifying text view roles.
Public property NoRoles The empty text view role set.

Top

Methods

  Name Description
Public method CreateTextView() Creates an IWpfTextView on a newly created ITextBuffer having content type "text".
Public method CreateTextView(ITextBuffer) Creates an IWpfTextView that displays the contents of the specified text buffer.
Public method CreateTextView(ITextBuffer, ITextViewRoleSet) Creates an IWpfTextView that displays the contents of the specified text buffer.
Public method CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions) Creates an IWpfTextView that displays the contents of the specified text buffer.
Public method CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions) Creates an IWpfTextView that displays the contents of the data model.
Public method CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions) Creates an IWpfTextView that displays the contents of the specified view model.
Public method CreateTextViewHost Creates a host for the text view.
Public method CreateTextViewRoleSet(IEnumerable<String>) Creates a ITextViewRoleSet containing the given roles.
Public method CreateTextViewRoleSet(array<String[]) Creates a ITextViewRoleSet containing the given roles.

Top

Events

  Name Description
Public event TextViewCreated Raised when a ITextView is created.

Top

Remarks

This is a MEF component part, and should be imported as follows:

[Import] ITextEditorFactoryService factory = null;

See Also

Reference

Microsoft.VisualStudio.Text.Editor Namespace