UI_PKEY_FontProperties_ForegroundColorType

識別UI_PKEY_FontProperties_ForegroundColorType屬性。

propertyDescription
   name = UI_PKEY_FontProperties_ForegroundColorType
   shellPKey = UI_PKEY_FontProperties_ForegroundColorType
   formatID = 00000310-7363-696e-8441798acf5aebb7
   propID = 310
   typeInfo
      type = UI_SWATCHCOLORTYPE

備註

應用程式會使用UI_PKEY_FontProperties_ForegroundColorType搭配 UI_PKEY_FontProperties_ForegroundColor來查詢 文字色彩 庫設定。

屬性值來自 UI_SWATCHCOLORTYPE 列舉。

預設值是 UI_SWATCHCOLORTYPE_RGB

下表描述屬性值。

描述
UI_SWATCHCOLORTYPE_NOCOLOR FontControl不支援。
UI_SWATCHCOLORTYPE_AUTOMATIC 應用程式應該查詢適當的系統計量,以取得 GetSysColor (COLOR_WINDOWTEXT) 擷取的目前 Windows 主題 文字色彩
UI_SWATCHCOLORTYPE_RGB 應用程式應該查詢色彩值的 UI_PKEY_FontProperties_ForegroundColorUI_PKEY_FontProperties_ForegroundColor的色彩值會顯示在 [文字色彩] 按鈕上,並在[文字色彩庫] 中選取。

UI_PKEY_FontProperties_ForegroundColorType會在FontControlText 色彩資源庫中選取色彩監看式時傳遞至IUICommandHandler::Execute回呼方法。

注意

強烈建議應用程式只在檔內重新置放游標時設定初始 文字色彩 值,而不會重新設定此值。 應該維護最後一個選取範圍,以避免需要重新選取所需的色彩。

字型控制項屬性

UI_SWATCHCOLORTYPE

字型控制項