Otter SDK Reference
Version:

HtmlColor Structure

Represents a valid HTML or CSS color.

Inheritance Hierarchy

  • object
    • System.ValueType
      • Inedo.Web.Controls.HtmlColor

Syntax

public struct HtmlColor : IEquatable<HtmlColor>

Constructors

Name Description
HtmlColor(byte red, byte green, byte blue, byte alpha)

Initializes a new instance of the HtmlColor struct.

HtmlColor(byte red, byte green, byte blue)

Initializes a new instance of the HtmlColor struct.

Properties

Name Description
Alpha

Gets the alpha channel value.

Blue

Gets the blue channel value.

Green

Gets the green channel value.

Red

Gets the red channel value.

Methods

Name Description
Equals(HtmlColor color1, HtmlColor color2)

Tests for equality.

Equals(HtmlColor other)

Tests for equality.

Equals(object obj)

Tests for equality.

GetHashCode

Returns a hash code.

ToString

Returns an HTML string representation of the color without alpha information.

TryParse(string s)

Tries to parse the string into an HtmlColor instance.