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

FontControl文本颜色库中选择颜色样本时,UI_PKEY_FontProperties_ForegroundColorType传递到 IUICommandHandler::Execute 回调方法。

注意

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

字体控件属性

UI_SWATCHCOLORTYPE

字体控件