IEditor 介面

適用於版本2

代表一般編輯器介面。

命名空間:  Microsoft.WebMatrix.Extensibility.Editor
組件:  Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)

語法

'宣告
Public Interface IEditor _
    Inherits IDisposable
'用途
Dim instance As IEditor
public interface IEditor : IDisposable
public interface class IEditor : IDisposable
type IEditor =  
    interface 
        interface IDisposable 
    end
public interface IEditor extends IDisposable

IEditor 型別公開下列成員。

屬性

  名稱 說明
公用屬性 CommandTarget 取得命令目標。
公用屬性 Control 取得將在 UI 中主控的控制項。
公用屬性 Dirty 取得或設定值,這個值表示使用者是否已修改文字。
公用屬性 FilePath 取得或設定檔案的路徑。
公用屬性 HasFocus 取得值,這個值表示編輯器是否具有焦點。
公用屬性 ReadOnly 取得或設定值,這個值表示使用者是否無法編輯文字。
公用屬性 ServiceProvider 取得此編輯器的選擇性服務 (例如 IEditorSelection)。
公用屬性 TechnologyName 取得字串,這個字串指定檔案中使用的技術。例如,javascript 檔案可以是瀏覽器 javascript 或 NodeJs,因此會傳回不同的技術名稱。

上層

方法

  名稱 說明
公用方法 Dispose (繼承自 IDisposable。)
公用方法 Focus 設定編輯器的焦點。

上層

事件

  名稱 說明
公用事件 DirtyChanged 發生在 Dirty 屬性的值變更之後。
公用事件 GotFocus 在焦點變更為編輯器時發生。如果已處置編輯器,則不會再引發其他事件。
公用事件 ReadOnlyChanging ReadOnly 屬性變更時發生。

上層

請參閱

參考

Microsoft.WebMatrix.Extensibility.Editor 命名空間