Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IAppearanceFormat.ResetFontColor() Method

In This Article

Resets a UI element’s font color, if it has been changed by a conditional appearance rule.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

void ResetFontColor()

#Remarks

The UI elements that implement the IAppearanceFormat interface can be formatted (highlighted) by the AppearanceController according to conditional appearance rules. For instance, a font color can be changed via the IAppearanceFormat.FontColor property. At the same time, you can reset the applied font color to a default one, if required. For instance, handle the AppearanceController.AppearanceApplied event, access the required item using the ApplyAppearanceEventArgs.Item parameter and reset the font color by casting the item to the IAppearanceFormat interface and using the ResetFontColor method.

See Also