MenuDisplayItemModel Class
Defines a colorable, selectable menu item
graph BT Type-->Base0["ColorDisplayItemModel"] click Base0 "/SonghayCore/latest/Songhay.Models/ColorDisplayItemModel" Base0-->Base1["DisplayItemModel"] click Base1 "/SonghayCore/latest/Songhay.Models/DisplayItemModel" Base1-->Base2["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-.->Interface3["IGroupable"] click Interface3 "/SonghayCore/latest/Songhay.Abstractions/IGroupable" Type-.->Interface4["ISelectable"] click Interface4 "/SonghayCore/latest/Songhay.Abstractions/ISelectable" Type["MenuDisplayItemModel"] class Type type-node

Syntax

public class MenuDisplayItemModel : ColorDisplayItemModel, ISortable, ITemporal, IColorable, 
    IGroupable, ISelectable

Properties

Name Property Type Summary
BackgroundHex string
Gets or sets the background hexadecimal value.
Inherited from ColorDisplayItemModel
ChildItems MenuDisplayItemModel[]
Gets or sets the child items.
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.
Inherited from ColorDisplayItemModel
GroupDisplayText string
Display text of the Group.
GroupId string
Identifier of the Group.
Id int
Gets or sets the identifier.
Inherited from DisplayItemModel
InceptDate DateTime?
Origin DateTime of the item.
Inherited from DisplayItemModel
IsCollapsed bool
Returns `true` when group is visually collapsed.
IsDefaultSelection bool?
Gets or sets whether this is default selection.
IsEnabled bool?
Gets or sets whether this is enabled.
IsSelected bool?
Gets or sets whether this is selected.
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
GetAllBy(Func<MenuDisplayItemModel, bool>) IEnumerable<MenuDisplayItemModel>
Gets all MenuDisplayItemModel by the specified predicate.
HasGroupId(string) bool
Returns true when the grouping has the specified identifier.
HasTag(Func<object, bool>?) bool
Returns true when the item has the Tag based on the specified evaluator.
IsAssignableToISerializable<MenuDisplayItemModel>() 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<MenuDisplayItemModel>() object
Boxes the nullable in object or returns DBNull.
ToReferenceTypeValueOrThrow<MenuDisplayItemModel>(string) T
Returns the non-null value of the specified, nullable reference type or throws an ArgumentNullException when the value is null.
WithChildItem(MenuDisplayItemModel) MenuDisplayItemModel
Fluently returns MenuDisplayItemModel with child item.
WithChildItems(IEnumerable<MenuDisplayItemModel>?) MenuDisplayItemModel
Fluently returns MenuDisplayItemModel with child items.
WithTag(object) DisplayItemModel
Fluently sets Tag.