Hex1bThemeElement<T>
Namespace: Hex1b.Theming
Assembly: Hex1b.dll
Represents a theme element with a typed value.
csharp
public class Hex1bThemeElement<T>Inheritance
Object → Hex1bThemeElement<T>
Constructors
Hex1bThemeElement(string, Func<T>, Hex1bThemeElement<T>?)
Parameters:
name(String):defaultValue(Func<<T>>):fallback(Hex1bThemeElement`1):
csharp
public Hex1bThemeElement(string name, Func<T> defaultValue, Hex1bThemeElement<T>? fallback = null)Properties
DefaultValue
Returns: Func<<T>>
csharp
public Func<T> DefaultValue { get; }Fallback
Optional fallback element to check before using DefaultValue. Enables cascading theme values (e.g., TopLine falls back to HorizontalLine).
Returns: Hex1bThemeElement`1
csharp
public Hex1bThemeElement<T>? Fallback { get; }Name
Returns: String
csharp
public string Name { get; }Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
Parameters:
obj(Object): The object to compare with the current object.
Returns: Boolean
true if the specified object is equal to the current object; otherwise, false.
csharp
public override bool Equals(object? obj)GetHashCode()
Serves as the default hash function.
Returns: Int32
A hash code for the current object.
csharp
public override int GetHashCode()ToString()
Returns a string that represents the current object.
Returns: String
A string that represents the current object.
csharp
public override string ToString()