创建编辑器视图。
命名空间: Microsoft.VisualStudio.Text.Editor
程序集: Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
语法
声明
Public Interface ITextEditorFactoryService
public interface ITextEditorFactoryService
public interface class ITextEditorFactoryService
type ITextEditorFactoryService = interface end
public interface ITextEditorFactoryService
ITextEditorFactoryService 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
AllPredefinedRoles | 由所有预定义文本视图角色组成的集合。 |
![]() |
DefaultRoles | 使用,在创建文本视图时,如果不指定文本视图角色的角色集。 |
![]() |
NoRoles | 设置的空的文本视图角色。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
CreateTextView() | 创建具有新创建的 ITextBuffer 的 IWpfTextView 内容类型 “text”。 |
![]() |
CreateTextView(ITextBuffer) | 创建显示指定的文本缓冲区的内容的 IWpfTextView 。 |
![]() |
CreateTextView(ITextBuffer, ITextViewRoleSet) | 创建显示指定的文本缓冲区的内容的 IWpfTextView 。 |
![]() |
CreateTextView(ITextBuffer, ITextViewRoleSet, IEditorOptions) | 创建显示指定的文本缓冲区的内容的 IWpfTextView 。 |
![]() |
CreateTextView(ITextDataModel, ITextViewRoleSet, IEditorOptions) | 创建显示数据模型的内容的 IWpfTextView 。 |
![]() |
CreateTextView(ITextViewModel, ITextViewRoleSet, IEditorOptions) | 创建显示指定的视图模型的内容的 IWpfTextView 。 |
![]() |
CreateTextViewHost | 为文本视图创建宿主。 |
![]() |
CreateTextViewRoleSet(IEnumerable<String>) | 创建一个包含给定角色的 ITextViewRoleSet。 |
![]() |
CreateTextViewRoleSet(array<String[]) | 创建一个包含给定角色的 ITextViewRoleSet。 |
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
TextViewCreated | 引发事件,这 ITextView 创建。 |
页首
备注
这是 MEF 组件部件,应导入如下所示:
[Import] ITextEditorFactoryService factory = null;