StyleProperties Class

Spotfire 14.2 API Reference
A collection of properties describing the styles of a user interface element.
Inheritance Hierarchy

SystemObject
  Spotfire.Dxp.Framework.StylesStyleProperties

Namespace:  Spotfire.Dxp.Framework.Styles
Assembly:  Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 64.0.19329.3263 (64.0.19329.3263)
Syntax

C#
public sealed class StyleProperties

The StyleProperties type exposes the following members.

Properties

  NameDescription
Public propertyBackgroundColor
Gets the background color.
Public propertyBorderBottomColor
Gets the border bottom color.
Public propertyBorderBottomLeftRadius
Gets the border bottom left radius.
Public propertyBorderBottomRightRadius
Gets the border bottom right radius.
Public propertyBorderBottomWidth
Gets the bottom border width.
Public propertyBorderLeftColor
Gets the border left color.
Public propertyBorderLeftWidth
Gets the left border width.
Public propertyBorderRightColor
Gets the border right color.
Public propertyBorderRightWidth
Gets the right border width.
Public propertyBorderStyle
Gets the border style.
Public propertyBorderTopColor
Gets the border top color.
Public propertyBorderTopLeftRadius
Gets the top left border radius.
Public propertyBorderTopRightRadius
Gets the border top right radius.
Public propertyBorderTopWidth
Gets the top border width.
Public propertyColor
Gets the color.
Public propertyFontFamily
Gets the font family name.
Public propertyFontSize
Gets the size of the font.
Public propertyFontStyle
Gets the font style.
Public propertyFontWeight
Gets the font weight.
Public propertyMarginBottom
Gets the bottom margin.
Public propertyMarginLeft
Gets the left margin.
Public propertyMarginRight
Gets the right margin.
Public propertyMarginTop
Gets the top margin.
Public propertyPaddingBottom
Gets the bottom padding.
Public propertyPaddingLeft
Gets the left padding.
Public propertyPaddingRight
Gets the right padding.
Public propertyPaddingTop
Gets the top padding.
Public propertySecondaryColor
Gets the secondary color. Used when rendering labels etc. on graphical elements (bars, lines, etc.) when the Color has worse contrast to the background.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToInlineCss
Creates a string containing the CSS corrsponding to the current property values.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods

  NameDescription
Public Extension MethodCreateFont
Creates a font from current settings.
(Defined by DrawingStyleExtensions.)
Public Extension MethodCreateFontMetadata
Creates a font from current settings.
(Defined by DrawingStyleExtensions.)
Public Extension MethodGetEffectiveBackgroundColor
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.)
Top
Version Information

Supported in: 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8, 11.7, 11.6, 11.5, 11.4
See Also

Reference