共用方式為


IEditorOperationsFactoryService 介面

服務,用於提供 IEditorOperations 物件。

命名空間:  Microsoft.VisualStudio.Text.Operations
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
Public Interface IEditorOperationsFactoryService
public interface IEditorOperationsFactoryService
public interface class IEditorOperationsFactoryService
type IEditorOperationsFactoryService =  interface end
public interface IEditorOperationsFactoryService

IEditorOperationsFactoryService 類型會公開下列成員。

方法

  名稱 描述
公用方法 GetEditorOperations 取得指定之 ITextViewIEditorOperations 物件。

回頁首

備註

這是 MEF 元件的組件,並應該匯入,如下所示:

[Import] IEditorOperationsFactoryService factory = null;

請參閱

參考

Microsoft.VisualStudio.Text.Operations 命名空間