Defines a colorable, selectable menu item
- Namespace
- Songhay
.Models - Interfaces
- Base Types
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 Color
|
ChildItems | Menu |
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 Color
|
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 |
IEnumerable |
Gets all
MenuDisplayItemModel
by the specified predicate.
|
HasGroupId |
bool |
Returns
true when the grouping has the specified identifier.
|
HasTag |
bool |
Returns
true when the item has the Tag
based on the specified evaluator.
|
Is |
bool |
Determines whether the specified type
can be assigned to
System.Runtime.Serialization.ISerializable .
From NullableExtensions
|
SetDefaults |
void |
Sets conventional default values
for
ITemporal data.
From ITemporalExtensions
|
SetDefaults |
void |
Sets conventional default values
for
ITemporal data.
From ITemporalExtensions
|
To |
MenuDisplayItemModel |
Converts the
DisplayItemModel into a menu display item model.
|
ToObjectOrDbNull |
object |
Boxes the nullable in
object
or returns DBNull .
From NullableExtensions
|
To |
T |
Returns the non-null value of the specified, nullable reference type
or throws an
ArgumentNullException
when the value is null.
From NullableExtensions
|
WithChildItem |
MenuDisplayItemModel |
Fluently returns
MenuDisplayItemModel with child item.
|
WithChildItems |
MenuDisplayItemModel |
Fluently returns
MenuDisplayItemModel with child items.
|
WithTag |
DisplayItemModel |
Fluently sets
Tag .
|