skip navigation
  • Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue 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 Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class SpreadThemableColor

Represents a color which can be used in a theme.

Inheritance
System.Object
SpreadThemableColor
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Documents.SpreadsheetStreaming
Assembly: Telerik.Documents.SpreadsheetStreaming.dll

Syntax

public class SpreadThemableColor

Constructors

SpreadThemableColor(SpreadColor)

Initializes a new instance of the SpreadThemableColor class.

Declaration
public SpreadThemableColor(SpreadColor color)
Parameters
SpreadColor color

The color.

SpreadThemableColor(SpreadColor, Boolean)

Initializes a new instance of the SpreadThemableColor class.

Declaration
public SpreadThemableColor(SpreadColor color, bool isAutomatic)
Parameters
SpreadColor color

The color.

System.Boolean isAutomatic

The is automatic.

SpreadThemableColor(SpreadThemeColorType)

Initializes a new instance of the SpreadThemableColor class.

Declaration
public SpreadThemableColor(SpreadThemeColorType themeColorType)
Parameters
SpreadThemeColorType themeColorType

Type of the theme color.

SpreadThemableColor(SpreadThemeColorType, Double)

Initializes a new instance of the SpreadThemableColor class.

Declaration
public SpreadThemableColor(SpreadThemeColorType themeColorType, double tintAndShade)
Parameters
SpreadThemeColorType themeColorType

Type of the theme color.

System.Double tintAndShade

The tint and shade.

SpreadThemableColor(SpreadThemeColorType, Nullable<SpreadColorShadeType>)

Initializes a new instance of the SpreadThemableColor class.

Declaration
public SpreadThemableColor(SpreadThemeColorType themeColorType, SpreadColorShadeType? colorShadeType)
Parameters
SpreadThemeColorType themeColorType

Type of the theme color.

System.Nullable<SpreadColorShadeType> colorShadeType

Type of the predefined tint and shade proportion for the themable color.

Properties

ColorShadeType

Gets the type of the color shade.

Declaration
public SpreadColorShadeType? ColorShadeType { get; }
Property Value
System.Nullable<SpreadColorShadeType>

The type of the color shade.

IsAutomatic

Gets the value indicating if the color is automatic. Automatic colors may be interpreted by a consumer as appropriate.

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

Value indicating if the color is automatic.

IsFromTheme

Gets a value indicating if the color comes from a theme.

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

The value indicating if the color comes from a theme.

LocalValue

Gets the local value of the color.

Declaration
public SpreadColor LocalValue { get; }
Property Value
SpreadColor

The local value of the color.

ThemeColorType

Gets the type of the theme color.

Declaration
public SpreadThemeColorType ThemeColorType { get; }
Property Value
SpreadThemeColorType

The type of the theme color.

TintAndShade

Gets the tint and shade proportion value. This value is applied over the theme color coming from the SpreadThemeColorType to determine the final color applied over the content.

Declaration
public double? TintAndShade { get; }
Property Value
System.Nullable<System.Double>

The tint and shade value.

Methods

Equals(Object)

Determines whether the specified System.Object is equal to the current System.Object.

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

The System.Object to compare with the current System.Object.

Returns
System.Boolean

Returns true if the specified System.Object is equal to the current System.Object; otherwise, false.

Overrides
System.Object.Equals(System.Object)

FromRgb(Byte, Byte, Byte)

Creates a new instance of the SpreadThemableColor class.

Declaration
public static SpreadThemableColor FromRgb(byte red, byte green, byte blue)
Parameters
System.Byte red

The red component.

System.Byte green

The green component.

System.Byte blue

The blue component.

Returns
SpreadThemableColor

Instance of the SpreadThemableColor class.

FromSpreadColor(SpreadColor)

Converts SpreadColor to SpreadThemableColor.

Declaration
public static SpreadThemableColor FromSpreadColor(SpreadColor value)
Parameters
SpreadColor value

The SpreadColor.

Returns
SpreadThemableColor

The SpreadThemableColor.

GetHashCode()

Serves as a hash function for a particular type.

Declaration
public override int GetHashCode()
Returns
System.Int32

A hash code for the current System.Object.

Overrides
System.Object.GetHashCode()

ToString()

Returns a string that represents the themable color.

Declaration
public override string ToString()
Returns
System.String

A string that represents the themable color.

Overrides
System.Object.ToString()

Operators

Equality(SpreadThemableColor, SpreadThemableColor)

Determines whether the specified themable colors are equal.

Declaration
public static bool operator ==(SpreadThemableColor first, SpreadThemableColor second)
Parameters
SpreadThemableColor first

SpreadThemableColor second

Returns
System.Boolean

True if the themable colors are equal; otherwise, false.

Explicit(SpreadColor to SpreadThemableColor)

Explicitly cast color to themable color.

Declaration
public static explicit operator SpreadThemableColor(SpreadColor value)
Parameters
SpreadColor value

The color.

Returns
SpreadThemableColor

Themable color.

Inequality(SpreadThemableColor, SpreadThemableColor)

Determines whether the specified themable colors are different.

Declaration
public static bool operator !=(SpreadThemableColor first, SpreadThemableColor second)
Parameters
SpreadThemableColor first

SpreadThemableColor second

Returns
System.Boolean

True if the themable colors are different; otherwise, false.

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • 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.