Class Palette
Namespace: Aurigma.DesignAtoms.Model.Color
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class Palette : Collection<Swatch>, IList<Swatch>, ICollection<Swatch>, IList, ICollection, IReadOnlyList<Swatch>, IReadOnlyCollection<Swatch>, IEnumerable<Swatch>, IEnumerable
Inheritance: System.Object -> System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch> -> Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch> -> Palette
Implements
System.Collections.Generic.IList<Aurigma.DesignAtoms.Model.Color.Swatch>System.Collections.Generic.ICollection<Aurigma.DesignAtoms.Model.Color.Swatch>System.Collections.IListSystem.Collections.ICollectionSystem.Collections.Generic.IReadOnlyList<Aurigma.DesignAtoms.Model.Color.Swatch>System.Collections.Generic.IReadOnlyCollection<Aurigma.DesignAtoms.Model.Color.Swatch>System.Collections.Generic.IEnumerable<Aurigma.DesignAtoms.Model.Color.Swatch>System.Collections.IEnumerable
Inherited Members
Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.AddRange(System.Collections.Generic.IEnumerable<Aurigma.DesignAtoms.Model.Color.Swatch>)Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.ClearItemsAurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.OnCollectionCleared(Aurigma.DesignAtoms.Model.Color.Swatch[])Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.InsertItem(System.Int32,Aurigma.DesignAtoms.Model.Color.Swatch)Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.OnItemAdded(System.Int32,Aurigma.DesignAtoms.Model.Color.Swatch)Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.RemoveItem(System.Int32)Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.OnItemRemoved(System.Int32,Aurigma.DesignAtoms.Model.Color.Swatch)Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.SetItem(System.Int32,Aurigma.DesignAtoms.Model.Color.Swatch)Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.Move(System.Int32,System.Int32)Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.OnItemMoved(System.Int32,System.Int32,Aurigma.DesignAtoms.Model.Color.Swatch)Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.Item(System.Int32)Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.ItemAddedAurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.ItemRemovedAurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.ItemMovedAurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.CollectionClearedSystem.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.Add(Aurigma.DesignAtoms.Model.Color.Swatch)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.ClearSystem.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.CopyTo(Aurigma.DesignAtoms.Model.Color.Swatch[],System.Int32)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.Contains(Aurigma.DesignAtoms.Model.Color.Swatch)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.GetEnumeratorSystem.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.IndexOf(Aurigma.DesignAtoms.Model.Color.Swatch)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.Insert(System.Int32,Aurigma.DesignAtoms.Model.Color.Swatch)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.Remove(Aurigma.DesignAtoms.Model.Color.Swatch)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.RemoveAt(System.Int32)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IEnumerable#GetEnumeratorSystem.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#ICollection#CopyTo(System.Array,System.Int32)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IList#get_Item(System.Int32)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IList#set_Item(System.Int32,System.Object)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IList#Add(System.Object)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IList#Contains(System.Object)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IList#IndexOf(System.Object)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IList#Insert(System.Int32,System.Object)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IList#Remove(System.Object)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.CountSystem.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.ItemsSystem.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#Generic#ICollection<T>#IsReadOnlySystem.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#ICollection#IsSynchronizedSystem.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#ICollection#SyncRootSystem.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IList#Item(System.Int32)System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IList#IsReadOnlySystem.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Model.Color.Swatch>.System#Collections#IList#IsFixedSizeSystem.Object.ToStringSystem.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
Palette
public Palette()
Palette
public Palette(IEnumerable<Swatch> collection, string uid = null)
Properties
UID
public string UID { get; }
Swatches
public List<Swatch> Swatches { get; set; }
Methods
Clone
public Palette Clone()
Returns
Aurigma.DesignAtoms.Model.Color.Palette
Equals
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | obj |
Returns
System.Boolean
Overrides
System.Object.Equals(System.Object)
Equals
public static bool Equals(Palette a, Palette b)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Color.Palette | a | |
| Aurigma.DesignAtoms.Model.Color.Palette | b |
Returns
System.Boolean
GetHashCode
public override int GetHashCode()
Returns
System.Int32
Overrides
System.Object.GetHashCode