[]
        
(Showing Draft Content)

GrapeCity.Documents.Svg.SvgColor

SvgColor Struct

Represents a color.

Implements
Namespace: GrapeCity.Documents.Svg
Assembly: DS.Documents.Imaging.dll
Syntax
public struct SvgColor : IEquatable<SvgColor>
Public Structure SvgColor
    Implements IEquatable(Of SvgColor)

Constructors

Name Description
SvgColor(HslColor)

Initializes a new instance of the SvgColor struct from the HslColor value.

SvgColor(Color)

Initializes a new instance of the SvgColor struct from the Color value.

SvgColor(int)

Initializes a new instance of the SvgColor struct from a 32-bit ARGB value.

Fields

Name Description
Black

Represents the black color.

CurrentColor

Represents the 'currentColor' value.

Transparent

Represents the transparent color.

Properties

Name Description
Hsl

Gets or sets the HslColor value.

IsCurrentColor

Gets a value indicating whether this color references the 'color' attribute.

IsHsl

Gets or sets a value indicating whether the color is stored in HSLA format.

IsRgb

Gets or sets a value indicating whether the color is stored in RGBA format.

Rgb

Gets the Color value.

Methods

Name Description
Equals(SvgColor)

Determines whether the specified SvgColor is equal to this instance.

Equals(object)

Determines whether the specified object is equal to this instance.

GetHashCode()

Returns a hash code for the current SvgColor.

ToString()

Returns a string that represents the current SvgColor.