共用方式為


IEditorFormatMap 介面

從任意索引鍵對應至 ResourceDictionary

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

語法

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

IEditorFormatMap 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 IsInBatchUpdate 判斷此 IEditorFormatMap 是否位於批次更新之中。

回頁首

方法

  名稱 描述
公用方法 AddProperties 為新索引鍵加入 ResourceDictionary
公用方法 BeginBatchUpdate 開始在此 IEditorFormatMap 上執行批次更新。在呼叫 EndBatchUpdate 之前,將不會引發事件。
公用方法 EndBatchUpdate 結束此 IEditorFormatMap 的批次更新,且如果批次更新期間做了任何變更,則引發事件。
公用方法 GetProperties 取得指定索引鍵的 ResourceDictionary
公用方法 SetProperties 設定索引鍵的 ResourceDictionary

回頁首

事件

  名稱 描述
公用事件 FormatMappingChanged 在此 IEditorFormatMap 變更時發生。

回頁首

請參閱

參考

Microsoft.VisualStudio.Text.Classification 命名空間