Gets a suitable color to use for painting the background. Use this to render the background of an element that does not support transparency.
This method is typically only relevant for Forms based implementations of views for CustomVisuals etc. If your view is based on HTML and
Javascript (that is, derived from CustomVisualView) you can just leave your background transparent to use the theme color of the page.
Namespace: Spotfire.Dxp.Framework.Styles
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax
C#
public static Color GetEffectiveBackgroundColor( this StyleProperties thisStyleProperties )
Parameters
- thisStyleProperties
- Type: Spotfire.Dxp.Framework.StylesStyleProperties
The style properties.
Return Value
Type: ColorA color.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type StyleProperties. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Version Information
Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also