UI _ PKEY _ FontProperties _ ForegroundColorType
Identifiziert die _ PKEY _ FontProperties _ ForegroundColorType-Eigenschaft der Benutzeroberfläche.
propertyDescription
name = UI_PKEY_FontProperties_ForegroundColorType
shellPKey = UI_PKEY_FontProperties_ForegroundColorType
formatID = 00000310-7363-696e-8441798acf5aebb7
propID = 310
typeInfo
type = UI_SWATCHCOLORTYPE
Hinweise
Ui _ PKEY _ FontProperties _ ForegroundColorType wird von einer Anwendung in Verbindung mit der Benutzeroberfläche _ PKEY _ FontProperties _ ForegroundColorverwendet, um Einstellungen des Textfarbkatalogs abzufragen.
Der Eigenschaftswert stammt aus der _ SWATCHCOLORTYPE-Enumeration der Benutzeroberfläche.
Der Standardwert ist UI_SWATCHCOLORTYPE_RGB.
Die folgende Tabelle enthält eine Beschreibung der Eigenschaftswerte.
| Wert | Beschreibung |
|---|---|
UI_SWATCHCOLORTYPE_NOCOLOR |
Wird von FontControlnicht unterstützt. |
UI_SWATCHCOLORTYPE_AUTOMATIC |
Die Anwendung sollte die entsprechende Systemmetrik für den Farbwert abfragen, in der Regel die aktuelle Windows Designtextfarbe, die mit GetSysColor(COLOR _ WINDOWTEXT) abgerufen wird. |
UI_SWATCHCOLORTYPE_RGB |
Die Anwendung sollte die _ Ui-PKEY _ FontProperties _ ForegroundColor nach dem Farbwert abfragen. Der Farbwert von _ UI PKEY _ FontProperties _ ForegroundColor wird auf der Schaltfläche Textfarbe angezeigt und im Textfarbkatalog ausgewählt. |
Ui _ PKEY _ FontProperties _ ForegroundColorType wird an die IUICommandHandler::Execute-Rückrufmethode übergeben, wenn eine Farbwatch in einem FontControl Text-Farbkatalog ausgewählt ist.
Hinweis
Es wird dringend empfohlen, dass die Anwendung nur einen anfänglichen Textfarbwert und diesen Wert nicht neu festlegen soll, wenn der Cursor innerhalb eines Dokuments neu positioniert wird. Die letzte Auswahl sollte beibehalten werden, um zu vermeiden, dass die gewünschte Farbe erneut ausgewählt werden muss.