Share via


StorableColorTheme Class

Definition

This is a serializable class that represents a named set of ISE UI colors and a font and font size selection. It also abstracts storage for a set of predefined and user customizable color themes.

public ref class StorableColorTheme
[Windows::Foundation::Metadata::WebHostHidden]
class StorableColorTheme
[System.Serializable]
public class StorableColorTheme
[<System.Serializable>]
type StorableColorTheme = class
Public Class StorableColorTheme
Inheritance
StorableColorTheme
Attributes

Constructors

StorableColorTheme()

Properties

FontFamily

Gets or sets the name of the font

FontSize

Gets or sets the size of the font

Item[String, Color]

This indexer allows the caller to pass in a default value to be returned if the key isn't in the list.

Item[String]

This indexer implements dictionary-like behavior using two arrays. It doesn't actually index the keys, so it's less performant than a real dictionary, but the number of entries in the collection will always be low, and (most importantly) it's easily serializable to XML.

Keys

Gets the keys collection so it's available for serialization.

Name

Gets or sets the name of the theme

Values

Gets the values collection so it's available for serialization.

Methods

Equals(Object)

This is equivalent to ==

GetHashCode()

This override creates a hashcode based on XORs of the hashcodes of the font name, font size, colors, and color keys

Operators

Equality(StorableColorTheme, StorableColorTheme)

This operator overload allows the caller to compare two themes by value, excluding the Name property

Inequality(StorableColorTheme, StorableColorTheme)

This is the not-equals counterpart to ==

Applies to