menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ColorObject - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ColorObject

    Represents the ARGB(alpha, red, green, blue) color.

    Inheritance
    System.Object
    ColorObject
    Implements
    IColor
    Namespace: Syncfusion.Presentation
    Assembly: Syncfusion.Presentation.Portable.dll
    Syntax
    public class ColorObject : Object, IColor

    Fields

    Empty

    Represents a color that is null.

    Declaration
    public static IColor Empty
    Field Value
    Type
    IColor

    Properties

    A

    Gets the alpha color value. Read-only.

    Declaration
    public byte A { get; }
    Property Value
    Type
    System.Byte

    AliceBlue

    Gets a predefined IColor object that has an ARGB value of #FFF0F8FF. Read-only.

    Declaration
    public static IColor AliceBlue { get; }
    Property Value
    Type
    IColor

    AntiqueWhite

    Gets a predefined IColor object that has an ARGB value of #FFFAEBD7. Read-only.

    Declaration
    public static IColor AntiqueWhite { get; }
    Property Value
    Type
    IColor

    Aqua

    Gets a predefined IColor object that has an ARGB value of #FF00FFFF. Read-only.

    Declaration
    public static IColor Aqua { get; }
    Property Value
    Type
    IColor

    Aquamarine

    Gets a predefined IColor object that has an ARGB value of #FF7FFFD4. Read-only.

    Declaration
    public static IColor Aquamarine { get; }
    Property Value
    Type
    IColor

    Azure

    Gets a predefined IColor object that has an ARGB value of #FFF0FFFF. Read-only.

    Declaration
    public static IColor Azure { get; }
    Property Value
    Type
    IColor

    B

    Gets the blue color value. Read-only.

    Declaration
    public byte B { get; }
    Property Value
    Type
    System.Byte

    Beige

    Gets a predefined IColor object that has an ARGB value of #FFF5F5DC. Read-only.

    Declaration
    public static IColor Beige { get; }
    Property Value
    Type
    IColor

    Bisque

    Gets a predefined IColor object that has an ARGB value of #FFFFE4C4. Read-only.

    Declaration
    public static IColor Bisque { get; }
    Property Value
    Type
    IColor

    Black

    Gets a predefined IColor object that has an ARGB value of #FF000000. Read-only.

    Declaration
    public static IColor Black { get; }
    Property Value
    Type
    IColor

    BlanchedAlmond

    Gets a predefined IColor object that has an ARGB value of #FFFFEBCD. Read-only.

    Declaration
    public static IColor BlanchedAlmond { get; }
    Property Value
    Type
    IColor

    Blue

    Gets a predefined IColor object that has an ARGB value of #FF0000FF. Read-only.

    Declaration
    public static IColor Blue { get; }
    Property Value
    Type
    IColor

    BlueViolet

    Gets a predefined IColor object that has an ARGB value of #FF8A2BE2. Read-only.

    Declaration
    public static IColor BlueViolet { get; }
    Property Value
    Type
    IColor

    Brown

    Gets a predefined IColor object that has an ARGB value of #FFA52A2A. Read-only.

    Declaration
    public static IColor Brown { get; }
    Property Value
    Type
    IColor

    BurlyWood

    Gets a predefined IColor object that has an ARGB value of #FFDEB887. Read-only.

    Declaration
    public static IColor BurlyWood { get; }
    Property Value
    Type
    IColor

    CadetBlue

    Gets a predefined IColor object that has an ARGB value of #FF5F9EA0. Read-only.

    Declaration
    public static IColor CadetBlue { get; }
    Property Value
    Type
    IColor

    Chartreuse

    Gets a predefined IColor object that has an ARGB value of #FF7FFF00. Read-only.

    Declaration
    public static IColor Chartreuse { get; }
    Property Value
    Type
    IColor

    Chocolate

    Gets a predefined IColor object that has an ARGB value of #FFD2691E. Read-only.

    Declaration
    public static IColor Chocolate { get; }
    Property Value
    Type
    IColor

    Coral

    Gets a predefined IColor object that has an ARGB value of #FFFF7F50. Read-only.

    Declaration
    public static IColor Coral { get; }
    Property Value
    Type
    IColor

    CornflowerBlue

    Gets a predefined IColor object that has an ARGB value of #FF6495ED. Read-only.

    Declaration
    public static IColor CornflowerBlue { get; }
    Property Value
    Type
    IColor

    Cornsilk

    Gets a predefined IColor object that has an ARGB value of #FFFFF8DC. Read-only.

    Declaration
    public static IColor Cornsilk { get; }
    Property Value
    Type
    IColor

    Crimson

    Gets a predefined IColor object that has an ARGB value of #FFDC143C. Read-only.

    Declaration
    public static IColor Crimson { get; }
    Property Value
    Type
    IColor

    Cyan

    Gets a predefined IColor object that has an ARGB value of #FF00FFFF. Read-only.

    Declaration
    public static IColor Cyan { get; }
    Property Value
    Type
    IColor

    DarkBlue

    Gets a predefined IColor object that has an ARGB value of #FF00008B. Read-only.

    Declaration
    public static IColor DarkBlue { get; }
    Property Value
    Type
    IColor

    DarkCyan

    Gets a predefined IColor object that has an ARGB value of #FF008B8B. Read-only.

    Declaration
    public static IColor DarkCyan { get; }
    Property Value
    Type
    IColor

    DarkGoldenrod

    Gets a predefined IColor object that has an ARGB value of #FFB8860B. Read-only.

    Declaration
    public static IColor DarkGoldenrod { get; }
    Property Value
    Type
    IColor

    DarkGray

    Gets a predefined IColor object that has an ARGB value of #FFA9A9A9. Read-only.

    Declaration
    public static IColor DarkGray { get; }
    Property Value
    Type
    IColor

    DarkGreen

    Gets a predefined IColor object that has an ARGB value of #FF006400. Read-only.

    Declaration
    public static IColor DarkGreen { get; }
    Property Value
    Type
    IColor

    DarkKhaki

    Gets a predefined IColor object that has an ARGB value of #FFBDB76B. Read-only.

    Declaration
    public static IColor DarkKhaki { get; }
    Property Value
    Type
    IColor

    DarkMagenta

    Gets a predefined IColor object that has an ARGB value of #FF8B008B. Read-only.

    Declaration
    public static IColor DarkMagenta { get; }
    Property Value
    Type
    IColor

    DarkOliveGreen

    Gets a predefined IColor object that has an ARGB value of #FF556B2F. Read-only.

    Declaration
    public static IColor DarkOliveGreen { get; }
    Property Value
    Type
    IColor

    DarkOrange

    Gets a predefined IColor object that has an ARGB value of #FFFF8C00. Read-only.

    Declaration
    public static IColor DarkOrange { get; }
    Property Value
    Type
    IColor

    DarkOrchid

    Gets a predefined IColor object that has an ARGB value of #FF9932CC. Read-only.

    Declaration
    public static IColor DarkOrchid { get; }
    Property Value
    Type
    IColor

    DarkRed

    Gets a predefined IColor object that has an ARGB value of #FF8B0000. Read-only.

    Declaration
    public static IColor DarkRed { get; }
    Property Value
    Type
    IColor

    DarkSalmon

    Gets a predefined IColor object that has an ARGB value of #FFE9967A. Read-only.

    Declaration
    public static IColor DarkSalmon { get; }
    Property Value
    Type
    IColor

    DarkSeaGreen

    Gets a predefined IColor object that has an ARGB value of #FF8FBC8F. Read-only.

    Declaration
    public static IColor DarkSeaGreen { get; }
    Property Value
    Type
    IColor

    DarkSlateBlue

    Gets a predefined IColor object that has an ARGB value of #FF483D8B. Read-only.

    Declaration
    public static IColor DarkSlateBlue { get; }
    Property Value
    Type
    IColor

    DarkSlateGray

    Gets a predefined IColor object that has an ARGB value of #FF2F4F4F. Read-only.

    Declaration
    public static IColor DarkSlateGray { get; }
    Property Value
    Type
    IColor

    DarkTurquoise

    Gets a predefined IColor object that has an ARGB value of #FF00CED1. Read-only.

    Declaration
    public static IColor DarkTurquoise { get; }
    Property Value
    Type
    IColor

    DarkViolet

    Gets a predefined IColor object that has an ARGB value of #FF9400D3. Read-only.

    Declaration
    public static IColor DarkViolet { get; }
    Property Value
    Type
    IColor

    DeepPink

    Gets a predefined IColor object that has an ARGB value of #FFFF1493. Read-only.

    Declaration
    public static IColor DeepPink { get; }
    Property Value
    Type
    IColor

    DeepSkyBlue

    Gets a predefined IColor object that has an ARGB value of #FF00BFFF. Read-only.

    Declaration
    public static IColor DeepSkyBlue { get; }
    Property Value
    Type
    IColor

    DimGray

    Gets a predefined IColor object that has an ARGB value of #FF696969. Read-only.

    Declaration
    public static IColor DimGray { get; }
    Property Value
    Type
    IColor

    DodgerBlue

    Gets a predefined IColor object that has an ARGB value of #FF1E90FF. Read-only.

    Declaration
    public static IColor DodgerBlue { get; }
    Property Value
    Type
    IColor

    Firebrick

    Gets a predefined IColor object that has an ARGB value of #FFB22222. Read-only.

    Declaration
    public static IColor Firebrick { get; }
    Property Value
    Type
    IColor

    FloralWhite

    Gets a predefined IColor object that has an ARGB value of #FFFFFAF0. Read-only.

    Declaration
    public static IColor FloralWhite { get; }
    Property Value
    Type
    IColor

    ForestGreen

    Gets a predefined IColor object that has an ARGB value of #FF228B22. Read-only.

    Declaration
    public static IColor ForestGreen { get; }
    Property Value
    Type
    IColor

    Fuchsia

    Gets a predefined IColor object that has an ARGB value of #FFFF00FF. Read-only.

    Declaration
    public static IColor Fuchsia { get; }
    Property Value
    Type
    IColor

    G

    Gets the green color value. Read-only.

    Declaration
    public byte G { get; }
    Property Value
    Type
    System.Byte

    Gainsboro

    Gets a predefined IColor object that has an ARGB value of #FFDCDCDC. Read-only.

    Declaration
    public static IColor Gainsboro { get; }
    Property Value
    Type
    IColor

    GhostWhite

    Gets a predefined IColor object that has an ARGB value of #FFF8F8FF. Read-only.

    Declaration
    public static IColor GhostWhite { get; }
    Property Value
    Type
    IColor

    Gold

    Gets a predefined IColor object that has an ARGB value of #FFFFD700. Read-only.

    Declaration
    public static IColor Gold { get; }
    Property Value
    Type
    IColor

    Goldenrod

    Gets a predefined IColor object that has an ARGB value of #FFDAA520. Read-only.

    Declaration
    public static IColor Goldenrod { get; }
    Property Value
    Type
    IColor

    Gray

    Gets a predefined IColor object that has an ARGB value of #FF808080. Read-only.

    Declaration
    public static IColor Gray { get; }
    Property Value
    Type
    IColor

    Green

    Gets a predefined IColor object that has an ARGB value of #FF008000. Read-only.

    Declaration
    public static IColor Green { get; }
    Property Value
    Type
    IColor

    GreenYellow

    Gets a predefined IColor object that has an ARGB value of #FFADFF2F. Read-only.

    Declaration
    public static IColor GreenYellow { get; }
    Property Value
    Type
    IColor

    Honeydew

    Gets a predefined IColor object that has an ARGB value of #FFF0FFF0. Read-only.

    Declaration
    public static IColor Honeydew { get; }
    Property Value
    Type
    IColor

    HotPink

    Gets a predefined IColor object that has an ARGB value of #FFFF69B4. Read-only.

    Declaration
    public static IColor HotPink { get; }
    Property Value
    Type
    IColor

    IndianRed

    Gets a predefined IColor object that has an ARGB value of #FFCD5C5C. Read-only.

    Declaration
    public static IColor IndianRed { get; }
    Property Value
    Type
    IColor

    Indigo

    Gets a predefined IColor object that has an ARGB value of #FF4B0082. Read-only.

    Declaration
    public static IColor Indigo { get; }
    Property Value
    Type
    IColor

    IsEmpty

    Specifies whether this IColor structure is uninitialized. Read-only.

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type
    System.Boolean

    IsKnownColor

    Gets a value indicating whether the color object is a predefined color. Predefined colors are represented by the KnownColor enumeration. Read-only.

    Declaration
    public bool IsKnownColor { get; }
    Property Value
    Type
    System.Boolean

    IsNamedColor

    Gets a value indicating whether the color object is a named color or a member of the KnownColor enumeration. Read-only.

    Declaration
    public bool IsNamedColor { get; }
    Property Value
    Type
    System.Boolean

    IsSystemColor

    Gets a value indicating whether the color object is a system color. System colors are represented by elements of the KnownColor enumeration. Read-only.

    Declaration
    public bool IsSystemColor { get; }
    Property Value
    Type
    System.Boolean

    Ivory

    Gets a predefined IColor object that has an ARGB value of #FFFFFFF0. Read-only.

    Declaration
    public static IColor Ivory { get; }
    Property Value
    Type
    IColor

    Khaki

    Gets a predefined IColor object that has an ARGB value of #FFF0E68C. Read-only.

    Declaration
    public static IColor Khaki { get; }
    Property Value
    Type
    IColor

    Lavender

    Gets a predefined IColor object that has an ARGB value of #FFE6E6FA. Read-only.

    Declaration
    public static IColor Lavender { get; }
    Property Value
    Type
    IColor

    LavenderBlush

    Gets a predefined IColor object that has an ARGB value of #FFFFF0F5. Read-only.

    Declaration
    public static IColor LavenderBlush { get; }
    Property Value
    Type
    IColor

    LawnGreen

    Gets a predefined IColor object that has an ARGB value of #FF7CFC00. Read-only.

    Declaration
    public static IColor LawnGreen { get; }
    Property Value
    Type
    IColor

    LemonChiffon

    Gets a predefined IColor object that has an ARGB value of #FFFFFACD. Read-only.

    Declaration
    public static IColor LemonChiffon { get; }
    Property Value
    Type
    IColor

    LightBlue

    Gets a predefined IColor object that has an ARGB value of #FFADD8E6. Read-only.

    Declaration
    public static IColor LightBlue { get; }
    Property Value
    Type
    IColor

    LightCoral

    Gets a predefined IColor object that has an ARGB value of #FFF08080. Read-only.

    Declaration
    public static IColor LightCoral { get; }
    Property Value
    Type
    IColor

    LightCyan

    Gets a predefined IColor object that has an ARGB value of #FFE0FFFF. Read-only.

    Declaration
    public static IColor LightCyan { get; }
    Property Value
    Type
    IColor

    LightGoldenrodYellow

    Gets a predefined IColor object that has an ARGB value of #FFFAFAD2. Read-only.

    Declaration
    public static IColor LightGoldenrodYellow { get; }
    Property Value
    Type
    IColor

    LightGray

    Gets a predefined IColor object that has an ARGB value of #FFD3D3D3. Read-only.

    Declaration
    public static IColor LightGray { get; }
    Property Value
    Type
    IColor

    LightGreen

    Gets a predefined IColor object that has an ARGB value of #FF90EE90. Read-only.

    Declaration
    public static IColor LightGreen { get; }
    Property Value
    Type
    IColor

    LightPink

    Gets a predefined IColor object that has an ARGB value of #FFFFB6C1. Read-only.

    Declaration
    public static IColor LightPink { get; }
    Property Value
    Type
    IColor

    LightSalmon

    Gets a predefined IColor object that has an ARGB value of #FFFFA07A. Read-only.

    Declaration
    public static IColor LightSalmon { get; }
    Property Value
    Type
    IColor

    LightSeaGreen

    Gets a predefined IColor object that has an ARGB value of #FF20B2AA. Read-only.

    Declaration
    public static IColor LightSeaGreen { get; }
    Property Value
    Type
    IColor

    LightSkyBlue

    Gets a predefined IColor object that has an ARGB value of #FF87CEFA. Read-only.

    Declaration
    public static IColor LightSkyBlue { get; }
    Property Value
    Type
    IColor

    LightSlateGray

    Gets a predefined IColor object that has an ARGB value of #FF778899. Read-only.

    Declaration
    public static IColor LightSlateGray { get; }
    Property Value
    Type
    IColor

    LightSteelBlue

    Gets a predefined IColor object that has an ARGB value of #FFB0C4DE. Read-only.

    Declaration
    public static IColor LightSteelBlue { get; }
    Property Value
    Type
    IColor

    LightYellow

    Gets a predefined IColor object that has an ARGB value of #FFFFFFE0. Read-only.

    Declaration
    public static IColor LightYellow { get; }
    Property Value
    Type
    IColor

    Lime

    Gets a predefined IColor object that has an ARGB value of #FF00FF00. Read-only.

    Declaration
    public static IColor Lime { get; }
    Property Value
    Type
    IColor

    LimeGreen

    Gets a predefined IColor object that has an ARGB value of #FF32CD32. Read-only.

    Declaration
    public static IColor LimeGreen { get; }
    Property Value
    Type
    IColor

    Linen

    Gets a predefined IColor object that has an ARGB value of #FFFAF0E6. Read-only.

    Declaration
    public static IColor Linen { get; }
    Property Value
    Type
    IColor

    Magenta

    Gets a predefined IColor object that has an ARGB value of #FFFF00FF. Read-only.

    Declaration
    public static IColor Magenta { get; }
    Property Value
    Type
    IColor

    Maroon

    Gets a predefined IColor object that has an ARGB value of #FF800000. Read-only.

    Declaration
    public static IColor Maroon { get; }
    Property Value
    Type
    IColor

    MediumAquamarine

    Gets a predefined IColor object that has an ARGB value of #FF66CDAA. Read-only.

    Declaration
    public static IColor MediumAquamarine { get; }
    Property Value
    Type
    IColor

    MediumBlue

    Gets a predefined IColor object that has an ARGB value of #FF0000CD. Read-only.

    Declaration
    public static IColor MediumBlue { get; }
    Property Value
    Type
    IColor

    MediumOrchid

    Gets a predefined IColor object that has an ARGB value of #FFBA55D3. Read-only.

    Declaration
    public static IColor MediumOrchid { get; }
    Property Value
    Type
    IColor

    MediumPurple

    Gets a predefined IColor object that has an ARGB value of #FF9370DB. Read-only.

    Declaration
    public static IColor MediumPurple { get; }
    Property Value
    Type
    IColor

    MediumSeaGreen

    Gets a predefined IColor object that has an ARGB value of #FF3CB371. Read-only.

    Declaration
    public static IColor MediumSeaGreen { get; }
    Property Value
    Type
    IColor

    MediumSlateBlue

    Gets a predefined IColor object that has an ARGB value of #FF7B68EE. Read-only.

    Declaration
    public static IColor MediumSlateBlue { get; }
    Property Value
    Type
    IColor

    MediumSpringGreen

    Gets a predefined IColor object that has an ARGB value of #FF00FA9A. Read-only.

    Declaration
    public static IColor MediumSpringGreen { get; }
    Property Value
    Type
    IColor

    MediumTurquoise

    Gets a predefined IColor object that has an ARGB value of #FF48D1CC. Read-only.

    Declaration
    public static IColor MediumTurquoise { get; }
    Property Value
    Type
    IColor

    MediumVioletRed

    Gets a predefined IColor object that has an ARGB value of #FFC71585. Read-only.

    Declaration
    public static IColor MediumVioletRed { get; }
    Property Value
    Type
    IColor

    MidnightBlue

    Gets a predefined IColor object that has an ARGB value of #FF191970. Read-only.

    Declaration
    public static IColor MidnightBlue { get; }
    Property Value
    Type
    IColor

    MintCream

    Gets a predefined IColor object that has an ARGB value of #FFF5FFFA. Read-only.

    Declaration
    public static IColor MintCream { get; }
    Property Value
    Type
    IColor

    MistyRose

    Gets a predefined IColor object that has an ARGB value of #FFFFE4E1. Read-only.

    Declaration
    public static IColor MistyRose { get; }
    Property Value
    Type
    IColor

    Moccasin

    Gets a predefined IColor object that has an ARGB value of #FFFFE4B5. Read-only.

    Declaration
    public static IColor Moccasin { get; }
    Property Value
    Type
    IColor

    NavajoWhite

    Gets a predefined IColor object that has an ARGB value of #FFFFDEAD. Read-only.

    Declaration
    public static IColor NavajoWhite { get; }
    Property Value
    Type
    IColor

    Navy

    Gets a predefined IColor object that has an ARGB value of #FF000080. Read-only.

    Declaration
    public static IColor Navy { get; }
    Property Value
    Type
    IColor

    OldLace

    Gets a predefined IColor object that has an ARGB value of #FFFDF5E6. Read-only.

    Declaration
    public static IColor OldLace { get; }
    Property Value
    Type
    IColor

    Olive

    Gets a predefined IColor object that has an ARGB value of #FF808000. Read-only.

    Declaration
    public static IColor Olive { get; }
    Property Value
    Type
    IColor

    OliveDrab

    Gets a predefined IColor object that has an ARGB value of #FF6B8E23. Read-only.

    Declaration
    public static IColor OliveDrab { get; }
    Property Value
    Type
    IColor

    Orange

    Gets a predefined IColor object that has an ARGB value of #FFFFA500. Read-only.

    Declaration
    public static IColor Orange { get; }
    Property Value
    Type
    IColor

    OrangeRed

    Gets a predefined IColor object that has an ARGB value of #FFFF4500. Read-only.

    Declaration
    public static IColor OrangeRed { get; }
    Property Value
    Type
    IColor

    Orchid

    Gets a predefined IColor object that has an ARGB value of #FFDA70D6. Read-only.

    Declaration
    public static IColor Orchid { get; }
    Property Value
    Type
    IColor

    PaleGoldenrod

    Gets a predefined IColor object that has an ARGB value of #FFEEE8AA. Read-only.

    Declaration
    public static IColor PaleGoldenrod { get; }
    Property Value
    Type
    IColor

    PaleGreen

    Gets a predefined IColor object that has an ARGB value of #FF98FB98. Read-only.

    Declaration
    public static IColor PaleGreen { get; }
    Property Value
    Type
    IColor

    PaleTurquoise

    Gets a predefined IColor object that has an ARGB value of #FFAFEEEE. Read-only.

    Declaration
    public static IColor PaleTurquoise { get; }
    Property Value
    Type
    IColor

    PaleVioletRed

    Gets a predefined IColor object that has an ARGB value of #FFDB7093. Read-only.

    Declaration
    public static IColor PaleVioletRed { get; }
    Property Value
    Type
    IColor

    PapayaWhip

    Gets a predefined IColor object that has an ARGB value of #FFFFEFD5. Read-only.

    Declaration
    public static IColor PapayaWhip { get; }
    Property Value
    Type
    IColor

    PeachPuff

    Gets a predefined IColor object that has an ARGB value of #FFFFDAB9. Read-only.

    Declaration
    public static IColor PeachPuff { get; }
    Property Value
    Type
    IColor

    Peru

    Gets a predefined IColor object that has an ARGB value of #FFCD853F. Read-only.

    Declaration
    public static IColor Peru { get; }
    Property Value
    Type
    IColor

    Pink

    Gets a predefined IColor object that has an ARGB value of #FFFFC0CB. Read-only.

    Declaration
    public static IColor Pink { get; }
    Property Value
    Type
    IColor

    Plum

    Gets a predefined IColor object that has an ARGB value of #FFDDA0DD. Read-only.

    Declaration
    public static IColor Plum { get; }
    Property Value
    Type
    IColor

    PowderBlue

    Gets a predefined IColor object that has an ARGB value of #FFB0E0E6. Read-only.

    Declaration
    public static IColor PowderBlue { get; }
    Property Value
    Type
    IColor

    Purple

    Gets a predefined IColor object that has an ARGB value of #FF800080. Read-only.

    Declaration
    public static IColor Purple { get; }
    Property Value
    Type
    IColor

    R

    Gets the red color value. Read-only.

    Declaration
    public byte R { get; }
    Property Value
    Type
    System.Byte

    Red

    Gets a predefined IColor object that has an ARGB value of #FFFF0000. Read-only.

    Declaration
    public static IColor Red { get; }
    Property Value
    Type
    IColor

    RosyBrown

    Gets a predefined IColor object that has an ARGB value of #FFBC8F8F. Read-only.

    Declaration
    public static IColor RosyBrown { get; }
    Property Value
    Type
    IColor

    RoyalBlue

    Gets a predefined IColor object that has an ARGB value of #FF4169E1. Read-only.

    Declaration
    public static IColor RoyalBlue { get; }
    Property Value
    Type
    IColor

    SaddleBrown

    Gets a predefined IColor object that has an ARGB value of #FF8B4513. Read-only.

    Declaration
    public static IColor SaddleBrown { get; }
    Property Value
    Type
    IColor

    Salmon

    Gets a predefined IColor object that has an ARGB value of #FFFA8072. Read-only.

    Declaration
    public static IColor Salmon { get; }
    Property Value
    Type
    IColor

    SandyBrown

    Gets a predefined IColor object that has an ARGB value of #FFF4A460. Read-only.

    Declaration
    public static IColor SandyBrown { get; }
    Property Value
    Type
    IColor

    SeaGreen

    Gets a predefined IColor object that has an ARGB value of #FF2E8B57. Read-only.

    Declaration
    public static IColor SeaGreen { get; }
    Property Value
    Type
    IColor

    SeaShell

    Gets a predefined IColor object that has an ARGB value of #FFFFF5EE. Read-only.

    Declaration
    public static IColor SeaShell { get; }
    Property Value
    Type
    IColor

    Sienna

    Gets a predefined IColor object that has an ARGB value of #FFA0522D. Read-only.

    Declaration
    public static IColor Sienna { get; }
    Property Value
    Type
    IColor

    Silver

    Gets a predefined IColor object that has an ARGB value of #FFC0C0C0. Read-only.

    Declaration
    public static IColor Silver { get; }
    Property Value
    Type
    IColor

    SkyBlue

    Gets a predefined IColor object that has an ARGB value of #FF87CEEB. Read-only.

    Declaration
    public static IColor SkyBlue { get; }
    Property Value
    Type
    IColor

    SlateBlue

    Gets a predefined IColor object that has an ARGB value of #FF6A5ACD. Read-only.

    Declaration
    public static IColor SlateBlue { get; }
    Property Value
    Type
    IColor

    SlateGray

    Gets a predefined IColor object that has an ARGB value of #FF708090. Read-only.

    Declaration
    public static IColor SlateGray { get; }
    Property Value
    Type
    IColor

    Snow

    Gets a predefined IColor object that has an ARGB value of #FFFFFAFA. Read-only.

    Declaration
    public static IColor Snow { get; }
    Property Value
    Type
    IColor

    SpringGreen

    Gets a predefined IColor object that has an ARGB value of #FF00FF7F. Read-only.

    Declaration
    public static IColor SpringGreen { get; }
    Property Value
    Type
    IColor

    SteelBlue

    Gets a predefined IColor object that has an ARGB value of #FF4682B4. Read-only.

    Declaration
    public static IColor SteelBlue { get; }
    Property Value
    Type
    IColor

    SystemColor

    Gets or sets a Color value.

    Declaration
    public Color SystemColor { get; set; }
    Property Value
    Type
    Color

    Tan

    Gets a predefined IColor object that has an ARGB value of #FFD2B48C. Read-only.

    Declaration
    public static IColor Tan { get; }
    Property Value
    Type
    IColor

    Teal

    Gets a predefined IColor object that has an ARGB value of #FF008080. Read-only.

    Declaration
    public static IColor Teal { get; }
    Property Value
    Type
    IColor

    Thistle

    Gets a predefined IColor object that has an ARGB value of #FFD8BFD8. Read-only.

    Declaration
    public static IColor Thistle { get; }
    Property Value
    Type
    IColor

    Tomato

    Gets a predefined IColor object that has an ARGB value of #FFFF6347. Read-only.

    Declaration
    public static IColor Tomato { get; }
    Property Value
    Type
    IColor

    Transparent

    Gets a predefined transparent color. Read-only.

    Declaration
    public static IColor Transparent { get; }
    Property Value
    Type
    IColor

    Turquoise

    Gets a predefined IColor object that has an ARGB value of #FF40E0D0. Read-only.

    Declaration
    public static IColor Turquoise { get; }
    Property Value
    Type
    IColor

    Violet

    Gets a predefined IColor object that has an ARGB value of #FFEE82EE. Read-only.

    Declaration
    public static IColor Violet { get; }
    Property Value
    Type
    IColor

    Wheat

    Gets a predefined IColor object that has an ARGB value of #FFF5DEB3. Read-only.

    Declaration
    public static IColor Wheat { get; }
    Property Value
    Type
    IColor

    White

    Gets a predefined IColor object that has an ARGB value of #FFFFFFFF. Read-only.

    Declaration
    public static IColor White { get; }
    Property Value
    Type
    IColor

    WhiteSmoke

    Gets a predefined IColor object that has an ARGB value of #FFF5F5F5. Read-only.

    Declaration
    public static IColor WhiteSmoke { get; }
    Property Value
    Type
    IColor

    Yellow

    Gets a predefined IColor object that has an ARGB value of #FFFFFF00. Read-only.

    Declaration
    public static IColor Yellow { get; }
    Property Value
    Type
    IColor

    YellowGreen

    Gets a predefined IColor object that has an ARGB value of #FF9ACD32. Read-only.

    Declaration
    public static IColor YellowGreen { get; }
    Property Value
    Type
    IColor

    Methods

    FromArgb(Int32)

    Creates an IColor structure from a 32-bit ARGB value.

    Declaration
    public static IColor FromArgb(int argb)
    Parameters
    Type Name Description
    System.Int32 argb

    A value specifying the 32-bit ARGB value.

    Returns
    Type Description
    IColor

    The IColor structure this method creates.

    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Open("Template.pptx");
    //Add a blank slide to the presentation.
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Set the color for solid fill
    slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(146880);
    //Save the presentation
    presentation.Save("Output.pptx");
    //Close the presentation
    presentation.Close(); 
    'Create a new presentation.
    Dim presentation As IPresentation = Presentation.Open("Template.pptx")
    'Add a blank slide to the presentation.
    Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank)
    'Set the color for solid fill
    slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(146880);
    'Save the presentation
    presentation.Save("Output.pptx")
    'Close the presentation
    presentation.Close()

    FromArgb(Int32, IColor)

    Creates an IColor structure from the specified IColor structure combined with the new alpha value.

    Declaration
    public static IColor FromArgb(int alpha, IColor baseColor)
    Parameters
    Type Name Description
    System.Int32 alpha

    The alpha value for the new IColor. Valid values are 0 through 255.

    IColor baseColor

    The IColor instance from which to create the new color.

    Returns
    Type Description
    IColor

    The IColor structure this method creates.

    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Open("Template.pptx");
    //Add a blank slide to the presentation.
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Set the color for solid fill
    slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(30, ColorObject.Red);
    //Save the presentation
    presentation.Save("Output.pptx");
    //Close the presentation
    presentation.Close(); 
    'Create a new presentation.
    Dim presentation As IPresentation = Presentation.Open("Template.pptx")
    'Add a blank slide to the presentation.
    Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank)
    'Set the color for solid fill
    slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(30, ColorObject.Red);
    'Save the presentation
    presentation.Save("Output.pptx")
    'Close the presentation
    presentation.Close()

    FromArgb(Int32, Int32, Int32)

    Creates an IColor structure from the specified RGB values (red, green, and blue). The alpha value is implicitly 255 (fully opaque).

    Declaration
    public static IColor FromArgb(int red, int green, int blue)
    Parameters
    Type Name Description
    System.Int32 red

    The red component value for the new IColor. Valid values are 0 through 255.

    System.Int32 green

    The green component value for the new IColor. Valid values are 0 through 255.

    System.Int32 blue

    The blue component value for the new IColor. Valid values are 0 through 255.

    Returns
    Type Description
    IColor

    The IColor structure this method creates.

    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Open("Template.pptx");
    //Add a blank slide to the presentation.
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Set the rgb value for solid fill
    slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 120, 120);
    //Save the presentation
    presentation.Save("Output.pptx");
    //Close the presentation
    presentation.Close(); 
    'Create a new presentation.
    Dim presentation As IPresentation = Presentation.Open("Template.pptx")
    'Add a blank slide to the presentation.
    Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank)
    'Set the rgb value for solid fill
    slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(120, 120, 120);
    'Save the presentation
    presentation.Save("Output.pptx")
    'Close the presentation
    presentation.Close()

    FromArgb(Int32, Int32, Int32, Int32)

    Creates an IColor structure from the four ARGB component (alpha, red, green, and blue) values.

    Declaration
    public static IColor FromArgb(int alpha, int red, int green, int blue)
    Parameters
    Type Name Description
    System.Int32 alpha

    The alpha component. Valid values are 0 through 255.

    System.Int32 red

    The red component. Valid values are 0 through 255.

    System.Int32 green

    The green component. Valid values are 0 through 255.

    System.Int32 blue

    The blue component. Valid values are 0 through 255.

    Returns
    Type Description
    IColor

    The IColor structure this method creates.

    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Open("Template.pptx");
    //Add a blank slide to the presentation.
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Set the argb value for solid fill
    slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(90, 120, 120, 120);
    //Save the presentation
    presentation.Save("Output.pptx");
    //Close the presentation
    presentation.Close(); 
    'Create a new presentation.
    Dim presentation As IPresentation = Presentation.Open("Template.pptx")
    'Add a blank slide to the presentation.
    Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank)
    'Set the argb value for solid fill
    slide.Background.Fill.SolidFill.Color = ColorObject.FromArgb(90, 120, 120, 120);
    'Save the presentation
    presentation.Save("Output.pptx")
    'Close the presentation
    presentation.Close()

    FromKnownColor(KnownColor)

    Creates an IColor structure from the specified predefined color.

    Declaration
    public static IColor FromKnownColor(KnownColor color)
    Parameters
    Type Name Description
    KnownColor color

    An element of the KnownColor enumeration.

    Returns
    Type Description
    IColor

    The IColor structure this method creates.

    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Open("Template.pptx");
    //Add a blank slide to the presentation.
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Set the color of solid Fill
    slide.Background.Fill.SolidFill.Color = ColorObject.FromKnownColor(System.Drawing.KnownColor.ActiveBorder);
    //Save the presentation
    presentation.Save("Output.pptx");
    //Close the presentation
    presentation.Close(); 
    'Create a new presentation.
    Dim presentation As IPresentation = Presentation.Open("Template.pptx")
    'Add a blank slide to the presentation.
    Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank)
    'Set the color of solid Fill
    slide.Background.Fill.SolidFill.Color = ColorObject.FromKnownColor(System.Drawing.KnownColor.ActiveBorder)
    'Save the presentation
    presentation.Save("Output.pptx")
    'Close the presentation
    presentation.Close()

    GetBrightness()

    Returns the hue-saturation-brightness (HSB) brightness value for the specified IColor structure.

    Declaration
    public float GetBrightness()
    Returns
    Type Description
    System.Single

    The brightness of this color. The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.

    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Create();
    //Add a blank slide to the presentation.
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Add shape to the slide
    IShape shape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100);
    //Set the fill type of shape
    shape.Fill.FillType = FillType.Pattern;
    //Set the back color of the pattern fill
    shape.Fill.PatternFill.BackColor = ColorObject.Red;
    //Create an instance for color object
    ColorObject colorObject = shape.Fill.PatternFill.BackColor as ColorObject;
    //Get the brightness of color, it is read only
    float brightness = colorObject.GetBrightness();
    //Save the presentation
    presentation.Save("Output.pptx");
    //close the presentation
    presentation.Close();
    'Create a new presentation.
    Dim presentation As IPresentation = Presentation.Create()
    'Add a blank slide to the presentation.
    Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank)
    'Add shape to the slide
    Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100)
    'Set the fill type of shape
    shape.Fill.FillType = FillType.Pattern
    'Set the back color of the pattern fill
    shape.Fill.PatternFill.BackColor = ColorObject.Red
    'Create an instance for color object
    Dim colorObject As ColorObject = TryCast(shape.Fill.PatternFill.BackColor, ColorObject)
    'Get the brightness of color, it is read only
    Dim brightness As Single = colorObject.GetBrightness()
    'Save the presentation
    presentation.Save("Output.pptx")
    'close the presentation
    presentation.Close()

    GetHue()

    Returns the hue-saturation-brightness (HSB) hue value, in degrees.

    Declaration
    public float GetHue()
    Returns
    Type Description
    System.Single

    The hue, in degrees, of the specified color. The hue is measured in degrees, ranging from 0.0 through 360.0, in HSB color space.

    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Create();
    //Add a blank slide to the presentation.
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Add shape to the slide
    IShape shape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100);
    //Set the fill type of shape
    shape.Fill.FillType = FillType.Pattern;
    //Set the back color of the pattern fill
    shape.Fill.PatternFill.BackColor = ColorObject.LightBlue;
    //Create an instance for color object
    ColorObject colorObject = shape.Fill.PatternFill.BackColor as ColorObject;
    //Get hue of color, read only
    float hue = colorObject.GetHue();
    //Save the presentation
    presentation.Save("Output.pptx");
    //close the presentation
    presentation.Close();
    'Create a new presentation.
    Dim presentation As IPresentation = Presentation.Create()
    'Add a blank slide to the presentation.
    Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank)
    'Add shape to the slide
    Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100)
    'Set the fill type of shape
    shape.Fill.FillType = FillType.Pattern
    'Set the back color of the pattern fill
    shape.Fill.PatternFill.BackColor = ColorObject.LightBlue
    'Create an instance for color object
    Dim colorObject As ColorObject = TryCast(shape.Fill.PatternFill.BackColor, ColorObject)
    'Get the hue of color, it is read only
    Dim hue As Single = colorObject.GetHue()
    'Save the presentation
    presentation.Save("Output.pptx")
    'close the presentation
    presentation.Close()

    GetSaturation()

    Returns the hue-saturation-brightness (HSB) saturation value.

    Declaration
    public float GetSaturation()
    Returns
    Type Description
    System.Single

    The saturation of the specified color. The saturation ranges from 0.0 through 1.0, where 0.0 is gray-scale and 1.0 is the most saturated.

    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Create();
    //Add a blank slide to the presentation.
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Add shape to the slide
    IShape shape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100);
    //Set the fill type of shape
    shape.Fill.FillType = FillType.Pattern;
    //Set the back color of the pattern fill
    shape.Fill.PatternFill.BackColor = ColorObject.LightBlue;
    //Create an instance for color object
    ColorObject colorObject = shape.Fill.PatternFill.BackColor as ColorObject;
    //Get the saturation of color, read only
    float saturation = colorObject.GetSaturation();
    //Save the presentation
    presentation.Save("Output.pptx");
    //close the presentation
    presentation.Close();
    'Create a new presentation.
    Dim presentation As IPresentation = Presentation.Create()
    'Add a blank slide to the presentation.
    Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank)
    'Add shape to the slide
    Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100)
    'Set the fill type of shape
    shape.Fill.FillType = FillType.Pattern
    'Set the back color of the pattern fill
    shape.Fill.PatternFill.BackColor = ColorObject.LightBlue
    'Create an instance for color object
    Dim colorObject As ColorObject = TryCast(shape.Fill.PatternFill.BackColor, ColorObject)
    'Get the saturation of color, it is read only
    Dim saturation As Single = colorObject.GetSaturation()
    'Save the presentation
    presentation.Save("Output.pptx")
    'close the presentation
    presentation.Close()

    ToArgb()

    Gets the 32-bit ARGB value of this IColor structure.

    Declaration
    public int ToArgb()
    Returns
    Type Description
    System.Int32

    The 32-bit Argb value of this color.

    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Create();
    //Add a blank slide to the presentation.
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Add shape to the slide
    IShape shape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100);
    //Set the fill type of shape
    shape.Fill.FillType = FillType.Pattern;
    //Set the back color of the pattern fill
    shape.Fill.PatternFill.BackColor = ColorObject.Red;
    //Create an instance for color object
    ColorObject colorObject = shape.Fill.PatternFill.BackColor as ColorObject;
    //Convert to the argb value 
    int argb = colorObject.ToArgb();
    //Save the presentation
    presentation.Save("Output.pptx");
    //close the presentation
    presentation.Close();
    'Create a new presentation.
    Dim presentation As IPresentation = Presentation.Create()
    'Add a blank slide to the presentation.
    Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank)
    'Add shape to the slide
    Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100)
    'Set the fill type of shape
    shape.Fill.FillType = FillType.Pattern
    'Set the back color of the pattern fill
    shape.Fill.PatternFill.BackColor = ColorObject.Red
    'Create an instance for color object
    Dim colorObject As ColorObject = TryCast(shape.Fill.PatternFill.BackColor, ColorObject)
    'Convert to the argb value 
    Dim argb As Integer = colorObject.ToArgb()
    'Save the presentation
    presentation.Save("Output.pptx")
    'close the presentation
    presentation.Close()

    ToKnownColor()

    Gets the KnownColor value of the IColor structure.

    Declaration
    public KnownColor ToKnownColor()
    Returns
    Type Description
    KnownColor

    An element of the KnownColor enumeration.

    Examples
    //Create a new presentation.
    IPresentation presentation = Presentation.Create();
    //Add a blank slide to the presentation.
    ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
    //Add shape to the slide
    IShape shape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100);
    //Set the fill type of shape
    shape.Fill.FillType = FillType.Pattern;
    //Set the pattern type
    shape.Fill.PatternFill.Pattern = PatternFillType.DarkDownwardDiagonal;
    //Set the back color of the pattern fill
    shape.Fill.PatternFill.BackColor = ColorObject.Red;
    //Create an instance for color object
    ColorObject colorObject = shape.Fill.PatternFill.BackColor as ColorObject;
    //Convert to known color
    System.Drawing.KnownColor knownColor = colorObject.ToKnownColor();
    //Save the presentation
    presentation.Save("Output.pptx");
    //close the presentation
    presentation.Close();
    'Create a new presentation.
    Dim presentation As IPresentation = Presentation.Create()
    'Add a blank slide to the presentation.
    Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank)
    'Add shape to the slide
    Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Dodecagon, 234, 23, 120, 100)
    'Set the fill type of shape
    shape.Fill.FillType = FillType.Pattern
    'Set the pattern type
    shape.Fill.PatternFill.Pattern = PatternFillType.DarkDownwardDiagonal
    'Set the back color of the pattern fill
    shape.Fill.PatternFill.BackColor = ColorObject.Red
    'Create an instance for color object
    Dim colorObject As ColorObject = TryCast(shape.Fill.PatternFill.BackColor, ColorObject)
    'Convert to known color
    Dim knownColor As System.Drawing.KnownColor = colorObject.ToKnownColor()
    'Save the presentation
    presentation.Save("Output.pptx")
    'close the presentation
    presentation.Close()

    Implements

    IColor
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved