skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class HtmlColor

Inheritance
System.Object
Term
HtmlColor
Inherited Members
Term.Inherit
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.Svg.ExCSS
Assembly: TelerikCommon.dll

Syntax

public class HtmlColor : Term, IEquatable<HtmlColor>

Constructors

HtmlColor(Byte, Byte, Byte)

Declaration
public HtmlColor(byte r, byte g, byte b)
Parameters
System.Byte r

System.Byte g

System.Byte b

HtmlColor(Byte, Byte, Byte, Byte)

Declaration
public HtmlColor(byte a, byte r, byte g, byte b)
Parameters
System.Byte a

System.Byte r

System.Byte g

System.Byte b

HtmlColor(Double, Byte, Byte, Byte)

Declaration
public HtmlColor(double a, byte r, byte g, byte b)
Parameters
System.Double a

System.Byte r

System.Byte g

System.Byte b

Fields

A

Declaration
public byte A
Field Value
System.Byte

B

Declaration
public byte B
Field Value
System.Byte

G

Declaration
public byte G
Field Value
System.Byte

R

Declaration
public byte R
Field Value
System.Byte

Properties

Alpha

Declaration
public double Alpha { get; }
Property Value
System.Double

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Overrides
System.Object.Equals(System.Object)

Equals(HtmlColor)

Declaration
public bool Equals(HtmlColor other)
Parameters
HtmlColor other

Returns
System.Boolean

Implements
System.IEquatable<T>.Equals(T)

FromHex(String)

Declaration
public static HtmlColor FromHex(string color)
Parameters
System.String color

Returns
HtmlColor

FromHsl(Single, Single, Single)

Declaration
public static HtmlColor FromHsl(float h, float s, float l)
Parameters
System.Single h

System.Single s

System.Single l

Returns
HtmlColor

FromRgb(Byte, Byte, Byte)

Declaration
public static HtmlColor FromRgb(byte r, byte g, byte b)
Parameters
System.Byte r

System.Byte g

System.Byte b

Returns
HtmlColor

FromRgba(Byte, Byte, Byte, Double)

Declaration
public static HtmlColor FromRgba(byte r, byte g, byte b, double a)
Parameters
System.Byte r

System.Byte g

System.Byte b

System.Double a

Returns
HtmlColor

FromRgba(Byte, Byte, Byte, Single)

Declaration
public static HtmlColor FromRgba(byte r, byte g, byte b, float a)
Parameters
System.Byte r

System.Byte g

System.Byte b

System.Single a

Returns
HtmlColor

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

ToString()

Declaration
public override string ToString()
Returns
System.String

Overrides
System.Object.ToString()

ToString(Boolean, Boolean, Int32)

Declaration
public string ToString(bool forceLong, bool friendlyFormat, int indentation = 0)
Parameters
System.Boolean forceLong

System.Boolean friendlyFormat

System.Int32 indentation

Returns
System.String

ToString(Boolean, Int32)

Declaration
public string ToString(bool friendlyFormat, int indentation = 0)
Parameters
System.Boolean friendlyFormat

System.Int32 indentation

Returns
System.String

TryFromHex(String, out HtmlColor)

Declaration
public static bool TryFromHex(string color, out HtmlColor htmlColor)
Parameters
System.String color

HtmlColor htmlColor

Returns
System.Boolean

Operators

Equality(HtmlColor, HtmlColor)

Declaration
public static bool operator ==(HtmlColor a, HtmlColor b)
Parameters
HtmlColor a

HtmlColor b

Returns
System.Boolean

Inequality(HtmlColor, HtmlColor)

Declaration
public static bool operator !=(HtmlColor a, HtmlColor b)
Parameters
HtmlColor a

HtmlColor b

Returns
System.Boolean

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.