ColorDisplayItemModel Class
Model for color display
Namespace
Songhay.Models
Interfaces
Base Types
Derived Types
graph BT Type-->Base0["DisplayItemModel"] click Base0 "/SonghayCore/latest/Songhay.Models/DisplayItemModel" Base0-->Base1["object"] Type-.->Interface0["ISortable"] click Interface0 "/SonghayCore/latest/Songhay.Abstractions/ISortable" Type-.->Interface1["ITemporal"] click Interface1 "/SonghayCore/latest/Songhay.Abstractions/ITemporal" Type-.->Interface2["IColorable"] click Interface2 "/SonghayCore/latest/Songhay.Abstractions/IColorable" Type["ColorDisplayItemModel"] class Type type-node Derived0["MenuDisplayItemModel"]-->Type click Derived0 "/SonghayCore/latest/Songhay.Models/MenuDisplayItemModel"

Syntax

public class ColorDisplayItemModel : DisplayItemModel, ISortable, ITemporal, IColorable

Properties

Name Property Type Summary
BackgroundHex string
Gets or sets the background hexadecimal value.
Description string
Gets or sets the description.
Inherited from DisplayItemModel
DisplayText string
Gets or sets the display text.
Inherited from DisplayItemModel
EndDate DateTime?
End/expiration DateTime of the item.
Inherited from DisplayItemModel
ForegroundHex string
Gets or sets the foreground hexadecimal value.
Id int
Gets or sets the identifier.
Inherited from DisplayItemModel
InceptDate DateTime?
Origin DateTime of the item.
Inherited from DisplayItemModel
ItemName string
Gets or sets the item name.
Inherited from DisplayItemModel
ModificationDate DateTime?
Modification/editorial DateTime of the item.
Inherited from DisplayItemModel
ResourceIndicator Uri?
Gets or sets the resource indicator.
Inherited from DisplayItemModel
SortOrdinal byte
Gets or sets the sort ordinal.
Inherited from DisplayItemModel
Tag object
Gets or sets the tag.
Inherited from DisplayItemModel

Methods

Name Return Value Summary
ToString() string
Represents this instance as a string.
Inherited from DisplayItemModel

Extension Methods

Name Value Summary
HasTag(Func<object, bool>?) bool
Returns true when the item has the Tag based on the specified evaluator.
IsAssignableToISerializable<ColorDisplayItemModel>() bool
Determines whether the specified type can be assigned to System.Runtime.Serialization.ISerializable.
SetDefaults(DateTime?) void
Sets conventional default values for ITemporal data.
SetDefaults() void
Sets conventional default values for ITemporal data.
ToMenuDisplayItemModel() MenuDisplayItemModel
Converts the DisplayItemModel into a menu display item model.
ToObjectOrDbNull<ColorDisplayItemModel>() object
Boxes the nullable in object or returns DBNull.
ToReferenceTypeValueOrThrow<ColorDisplayItemModel>(string) T
Returns the non-null value of the specified, nullable reference type or throws an ArgumentNullException when the value is null.
WithTag(object) DisplayItemModel
Fluently sets Tag.