ITextEditorFactoryService Interface
TOC
Collapse the table of content
Expand the table of content

ITextEditorFactoryService Interface

Creates editor views.

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

public interface ITextEditorFactoryService

The ITextEditorFactoryService type exposes the following members.

  NameDescription
Public propertyAllPredefinedRolesThe set of all predefined text view roles.
Public propertyDefaultRolesThe set of roles that are used when creating a text view without specifying text view roles.
Public propertyNoRolesThe empty text view role set.
Top

  NameDescription
Public methodCreateTextView()Creates an IWpfTextView on a newly created ITextBuffer having content type "text".
Public methodCreateTextView(ITextBuffer)Creates an IWpfTextView that displays the contents of the specified text buffer.
Public methodCreateTextView(ITextBuffer, ITextViewRoleSet)Creates an IWpfTextView that displays the contents of the specified text buffer.
Public methodCreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions)Creates an IWpfTextView that displays the contents of the specified text buffer.
Public methodCreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions)Creates an IWpfTextView that displays the contents of the data model.
Public methodCreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions)Creates an IWpfTextView that displays the contents of the specified view model.
Public methodCreateTextViewHostCreates a host for the text view.
Public methodCreateTextViewRoleSet(IEnumerable<String>)Creates a ITextViewRoleSet containing the given roles.
Public methodCreateTextViewRoleSet(String[])Creates a ITextViewRoleSet containing the given roles.
Top

  NameDescription
Public eventTextViewCreatedRaised when a ITextView is created.
Top

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

[Import] ITextEditorFactoryService factory = null;

Community Additions

ADD
Show:
© 2016 Microsoft