Method ApplyOnClassChange
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
ApplyOnClassChange(VisualElement, string[], string[])
Patch-time entry point: re-resolves the font intent when the class list changed and either the new or the old list carried a font class. The old-side check is what clears the inline font style when the last font class is removed. No-op when neither list has a font class. Single source of truth for the patch-side gate.
public static void ApplyOnClassChange(VisualElement element, string[] oldClassNames, string[] newClassNames)
Parameters
elementVisualElementoldClassNamesstring[]newClassNamesstring[]