Class SwatchModule
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NoXP.RuntimeComponents.ColorPicker
Assembly: NoXP.RuntimeComponents.dll
Syntax
public class SwatchModule : ColorPickerModuleBase
Constructors
SwatchModule(ColorPicker)
Declaration
protected SwatchModule(ColorPicker owner)
Parameters
| Type | Name | Description |
|---|---|---|
| ColorPicker | owner |
Properties
Mode
Declaration
public SwatchModule.DisplayModes Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| SwatchModule.DisplayModes |
Methods
ApplyColors(IColorSchema)
Declaration
public override void ApplyColors(IColorSchema schema)
Parameters
| Type | Name | Description |
|---|---|---|
| IColorSchema | schema |
Overrides
NoXP.Shared.UI.UIComponentModule<NoXP.RuntimeComponents.ColorPicker.ColorPicker>.ApplyColors(NoXP.Shared.IColorSchema)
Init()
Declaration
protected override void Init()
Overrides
NoXP.Shared.UI.UIComponentModule<NoXP.RuntimeComponents.ColorPicker.ColorPicker>.Init()
LoadSwatches(ICollection<Swatch>)
Loads the swatches from the given System.Collections.Generic.ICollection<T>.
Declaration
public void LoadSwatches(ICollection<Swatch> newSwatches)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.ICollection<Swatch> | newSwatches | The collection of Swatch to load as current swatches. |
SetDisplayMode(SwatchModule.DisplayModes)
Sets the display mode for the SwatchModule to either grid or list.
Declaration
public void SetDisplayMode(SwatchModule.DisplayModes mode)
Parameters
| Type | Name | Description |
|---|---|---|
| SwatchModule.DisplayModes | mode | The mode to display the swatches in. See SwatchModule.DisplayModes for the available modes. |