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 和 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 的颜色值显示在文本颜色按钮上,并在文本颜色库中选择。

当在 FontControl 文本高亮颜色 库中选择颜色监视时,UI_PKEY_FontProperties_ForegroundColorType 将被传递给 IUICommandHandler::Execute 回调方法。

注意

强烈建议应用程序仅在文档中重新定位光标时设置初始文本颜色值,而不重新设置此值。 应保留上次选择的颜色,以免需要重新选择所需的颜色。

字体控件属性

UI_SWATCHCOLORTYPE

字体控件