Method TextColor
TextColor(bool)
Returns the recommended text color for either dark or light backgrounds.
public static Color TextColor(bool isDark)
Parameters
isDarkboolIndicates whether the background is dark. If true, a color suitable for dark backgrounds is returned; otherwise, a color suitable for light backgrounds is returned.