Class MBIconBearingSelectElement<T>
A list item used by MBSegmentedButtonMulti<IList<TItem>>
public record MBIconBearingSelectElement<T> : MBSelectElement<T>, IEquatable<MBSelectElement<T>>, IEquatable<MBIconBearingSelectElement<T>>
Type Parameters
T
- Inheritance
-
MBIconBearingSelectElement<T>
- Implements
- Inherited Members
Constructors
MBIconBearingSelectElement()
public MBIconBearingSelectElement()
MBIconBearingSelectElement(MBIconBearingSelectElement<T>)
protected MBIconBearingSelectElement(MBIconBearingSelectElement<T> original)
Parameters
original
MBIconBearingSelectElement<T>
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Icon
The leading icon.
public string Icon { get; set; }
Property Value
Methods
Equals(MBIconBearingSelectElement<T>?)
public virtual bool Equals(MBIconBearingSelectElement<T>? other)
Parameters
other
MBIconBearingSelectElement<T>
Returns
Equals(MBSelectElement<T>?)
public override sealed bool Equals(MBSelectElement<T>? other)
Parameters
other
MBSelectElement<T>
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(MBIconBearingSelectElement<T>?, MBIconBearingSelectElement<T>?)
public static bool operator ==(MBIconBearingSelectElement<T>? left, MBIconBearingSelectElement<T>? right)
Parameters
left
MBIconBearingSelectElement<T>right
MBIconBearingSelectElement<T>
Returns
operator !=(MBIconBearingSelectElement<T>?, MBIconBearingSelectElement<T>?)
public static bool operator !=(MBIconBearingSelectElement<T>? left, MBIconBearingSelectElement<T>? right)
Parameters
left
MBIconBearingSelectElement<T>right
MBIconBearingSelectElement<T>