[]
        
(Showing Draft Content)

GrapeCity.Documents.Svg.SvgColor

Struct SvgColor

Namespace
GrapeCity.Documents.Svg
Assembly
GcDocs.Imaging.dll

Represents a color.

public struct SvgColor : IEquatable<SvgColor>
Implements
System.IEquatable<T><SvgColor>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

SvgColor(HslColor)

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

public SvgColor(HslColor hsl)

Parameters

hsl HslColor

SvgColor(Color)

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

public SvgColor(Color color)

Parameters

color System.Drawing.Color

SvgColor(int)

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

public SvgColor(int argb)

Parameters

argb int

Fields

Black

Represents the black color.

public static readonly SvgColor Black

Field Value

SvgColor

CurrentColor

Represents the 'currentColor' value.

public static readonly SvgColor CurrentColor

Field Value

SvgColor

Transparent

Represents the transparent color.

public static readonly SvgColor Transparent

Field Value

SvgColor

Properties

Hsl

Gets or sets the HslColor value.

public HslColor Hsl { get; }

Property Value

HslColor

IsCurrentColor

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

public bool IsCurrentColor { get; }

Property Value

bool

IsHsl

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

public bool IsHsl { get; }

Property Value

bool

IsRgb

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

public bool IsRgb { get; }

Property Value

bool

Rgb

Gets the System.Drawing.Color value.

public Color Rgb { get; }

Property Value

System.Drawing.Color

Methods

Equals(SvgColor)

Determines whether the specified SvgColor is equal to this instance.

public bool Equals(SvgColor other)

Parameters

other SvgColor

Returns

bool

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Returns a hash code for the current SvgColor.

public override int GetHashCode()

Returns

int

ToString()

Returns a string that represents the current SvgColor.

public override string ToString()

Returns

string