Class ColorItem
Represents a class for ColorItem in system color items list.
Inheritance
System.Object
ColorItem
Implements
System.IDisposable
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class ColorItem : Object, IDisposable
Constructors
ColorItem()
Initializes a new instance of the ColorItem class.
Declaration
public ColorItem()
ColorItem(String, SolidColorBrush)
Initializes a new instance of the ColorItem class.
Declaration
public ColorItem(string name, SolidColorBrush brush)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the ColorItem. |
System.Windows.Media.SolidColorBrush | brush | Brush of the ColorItem. |
Properties
Brush
Gets current the brush of the ColorItem.
Declaration
public SolidColorBrush Brush { get; }
Property Value
Type | Description |
---|---|
System.Windows.Media.SolidColorBrush | Type: Brush |
Name
Gets or sets the name of the ColorItem.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type: System.String |
Methods
Dispose()
Disposes all the resources.
Declaration
public void Dispose()
Implements
System.IDisposable