ColorInfo Structure

Spotfire 14.2 API Reference
Represents a color with three bytes for the r,g,b components and a float for alpha.

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#
[SerializableAttribute]
[PersistenceVersionAttribute(17, 0)]
[JsonObjectAttribute]
public struct ColorInfo : ISerializable, IEquatable<ColorInfo>

The ColorInfo type exposes the following members.

Constructors

  NameDescription
Public methodColorInfo(Int32)
Initializes a new instance of the ColorInfo struct from an integer value.
Public methodColorInfo(ColorInfo, Single)
Initializes a new instance of the ColorInfo struct using another one as source but with a new alpha. Clamps the alpha to [0, 1].
Public methodColorInfo(Int32, Int32, Int32)
Initializes a new instance of the ColorInfo struct. Clamps the color components to the range [0, 255] and sets alpha to 1.
Public methodColorInfo(Byte, Byte, Byte, Byte)
Initializes a new instance of the ColorInfo struct.
Public methodColorInfo(Byte, Byte, Byte, Single)
Initializes a new instance of the ColorInfo struct. Clamps the alpha to [0, 1].
Public methodColorInfo(Int32, Int32, Int32, Single)
Initializes a new instance of the ColorInfo struct. Clamps the color components to the range [0, 255] and alpha to [0, 1].
Top
Properties

  NameDescription
Public propertyA
Gets the alpha value of this color.
Public propertyB
Gets the blue value of this color.
Public propertyG
Gets the green value of this color.
Public propertyIsOpaque
Gets a value indicating whether this instance is completely opaque.
Public propertyIsTransparent
Gets a value indicating whether this instance is completely transparent.
Public propertyR
Gets the red value of this color.
Top
Methods

  NameDescription
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(ColorInfo)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToArgb
Converts this color to an integer.
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compares two ColorInfo structures for equality.
Public operatorStatic memberInequality
Compares two ColorInfo structures for inequality.
Top
Fields

  NameDescription
Public fieldStatic memberTransparent
Transparent color. Has all components set to zero (transparent black). Note that this is different from System.Drawing.Color.Transparent which is transparent white.
Top
Extension Methods

  NameDescription
Public Extension MethodToColor
Creates a font from current settings.
(Defined by DrawingStyleExtensions.)
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implementationPrivate methodISerializableGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
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