語言

FontAndColorProviderBase 類別

定義

字型與色彩提供者的基底類別

public ref class FontAndColorProviderBase abstract : Microsoft::VisualStudio::Shell::Interop::IVsFontAndColorDefaults, Microsoft::VisualStudio::Shell::Interop::IVsFontAndColorEvents
public abstract class FontAndColorProviderBase : Microsoft.VisualStudio.Shell.Interop.IVsFontAndColorDefaults, Microsoft.VisualStudio.Shell.Interop.IVsFontAndColorEvents
type FontAndColorProviderBase = class
    interface IVsFontAndColorDefaults
    interface IVsFontAndColorEvents
Public MustInherit Class FontAndColorProviderBase
Implements IVsFontAndColorDefaults, IVsFontAndColorEvents
繼承
FontAndColorProviderBase
衍生
實作

建構函式

名稱 Description
FontAndColorProviderBase()

初始化 FontAndColorProviderBase 類別的新執行個體。

屬性

名稱 Description
CategoryName

取得或設定類別名稱。

Font

能取得可用的字體風格。

FontColorDefaults

它會取得字體和顏色的預設值。

FontColorFlags

取得字體和顏色的基礎。 允許衍生類別自訂它。

FontDefault

取得或設定預設字型。

Guid

取得或設定恆等式 Guid。

ItemsChanged

讓一個修改項目的雜湊表。

Reset

會得到一個值,表示字型和顏色是否被重置回初始值。

明確介面實作

名稱 Description
IVsFontAndColorDefaults.GetBaseCategory(Guid)

取得基本類別。

IVsFontAndColorDefaults.GetCategoryName(String)

指示要取回的類別名稱。

IVsFontAndColorDefaults.GetFlags(UInt32)

擷取目前物件的屬性。

IVsFontAndColorDefaults.GetFont(FontInfo[])

取得編輯器使用的字體。

IVsFontAndColorDefaults.GetItem(Int32, AllColorableItemInfo[])

擷取一個整數值以識別一個項目。

IVsFontAndColorDefaults.GetItemByName(String, AllColorableItemInfo[])

表示參數中的 itemName 一個項目。

IVsFontAndColorDefaults.GetItemCount(Int32)

取回物品數量。

IVsFontAndColorDefaults.GetPriority(UInt16)

取得字型和顏色優先權。

IVsFontAndColorEvents.OnApply()

套用字型和顏色設定。

IVsFontAndColorEvents.OnFontChanged(Guid, FontInfo[], LOGFONTW[], UInt32)

當 Visual Studio 環境在修改顯示項目下拉選單中某一類別的字型時呼叫此系統。

IVsFontAndColorEvents.OnItemChanged(Guid, String, Int32, ColorableItemInfo[], UInt32, UInt32)

套用字型和顏色變更。

IVsFontAndColorEvents.OnReset(Guid)

表示需清除至參數 guid 識別項目的變更。

IVsFontAndColorEvents.OnResetToBaseCategory(Guid)

重置設定為基礎設定。 未實作。

適用於