ITextEditorFactoryService Interface
Creates editor views.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Déclaration
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 | |
---|---|---|
AllPredefinedRoles | The set of all predefined text view roles. | |
DefaultRoles | The set of roles that are used when creating a text view without specifying text view roles. | |
NoRoles | The empty text view role set. |
Top
Methods
Name | Description | |
---|---|---|
CreateTextView() | Creates an IWpfTextView on a newly created ITextBuffer having content type "text". | |
CreateTextView(ITextBuffer) | Creates an IWpfTextView that displays the contents of the specified text buffer. | |
CreateTextView(ITextBuffer, ITextViewRoleSet) | Creates an IWpfTextView that displays the contents of the specified text buffer. | |
CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions) | Creates an IWpfTextView that displays the contents of the specified text buffer. | |
CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions) | Creates an IWpfTextView that displays the contents of the data model. | |
CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions) | Creates an IWpfTextView that displays the contents of the specified view model. | |
CreateTextViewHost | Creates a host for the text view. | |
CreateTextViewRoleSet(IEnumerable<String>) | Creates a ITextViewRoleSet containing the given roles. | |
CreateTextViewRoleSet(array<String[]) | Creates a ITextViewRoleSet containing the given roles. |
Top
Events
Name | Description | |
---|---|---|
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;