A collection of properties describing the styles of a user interface element.
Inheritance Hierarchy
Spotfire.Dxp.Framework.StylesStyleProperties
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 sealed class StyleProperties
The StyleProperties type exposes the following members.
Properties
Name | Description | |
---|---|---|
BackgroundColor |
Gets the background color.
| |
BorderBottomColor |
Gets the border bottom color.
| |
BorderBottomLeftRadius |
Gets the border bottom left radius.
| |
BorderBottomRightRadius |
Gets the border bottom right radius.
| |
BorderBottomWidth |
Gets the bottom border width.
| |
BorderLeftColor |
Gets the border left color.
| |
BorderLeftWidth |
Gets the left border width.
| |
BorderRightColor |
Gets the border right color.
| |
BorderRightWidth |
Gets the right border width.
| |
BorderStyle |
Gets the border style.
| |
BorderTopColor |
Gets the border top color.
| |
BorderTopLeftRadius |
Gets the top left border radius.
| |
BorderTopRightRadius |
Gets the border top right radius.
| |
BorderTopWidth |
Gets the top border width.
| |
Color |
Gets the color.
| |
FontFamily |
Gets the font family name.
| |
FontSize |
Gets the size of the font.
| |
FontStyle |
Gets the font style.
| |
FontWeight |
Gets the font weight.
| |
MarginBottom |
Gets the bottom margin.
| |
MarginLeft |
Gets the left margin.
| |
MarginRight |
Gets the right margin.
| |
MarginTop |
Gets the top margin.
| |
PaddingBottom |
Gets the bottom padding.
| |
PaddingLeft |
Gets the left padding.
| |
PaddingRight |
Gets the right padding.
| |
PaddingTop |
Gets the top padding.
| |
SecondaryColor |
Gets the secondary color.
Used when rendering labels etc. on graphical elements (bars, lines, etc.) when the Color has worse contrast to the background.
|
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToInlineCss |
Creates a string containing the CSS corrsponding to the current property values.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
CreateFont |
Creates a font from current settings.
(Defined by DrawingStyleExtensions.) | |
CreateFontMetadata |
Creates a font from current settings.
(Defined by DrawingStyleExtensions.) | |
GetEffectiveBackgroundColor |
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.
(Defined by DrawingStyleExtensions.) |
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