Class FooterLink
A link in a TwFooter, either in one of its sections or along its bottom row.
public sealed record FooterLink : IEquatable<FooterLink>
- Inheritance
-
FooterLink
- Implements
- Inherited Members
Constructors
FooterLink(string, string, Icon?, bool)
A link in a TwFooter, either in one of its sections or along its bottom row.
public FooterLink(string Label, string Href, Icon? Icon = null, bool OpensInNewTab = false)
Parameters
LabelstringThe text of the link.
HrefstringThe address the link goes to.
IconIcon?An optional icon shown before the label. It is decorative: the label names the link.
OpensInNewTabboolWhether the link opens in a new tab. When it does, the link says so to assistive technology and is given
rel="noopener noreferrer".
Properties
Href
The address the link goes to.
public string Href { get; init; }
Property Value
Icon
An optional icon shown before the label. It is decorative: the label names the link.
public Icon? Icon { get; init; }
Property Value
- Icon?
Label
The text of the link.
public string Label { get; init; }
Property Value
OpensInNewTab
Whether the link opens in a new tab. When it does, the link says so to assistive technology and is given
rel="noopener noreferrer".
public bool OpensInNewTab { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out Icon?, out bool)
public void Deconstruct(out string Label, out string Href, out Icon? Icon, out bool OpensInNewTab)
Parameters
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(FooterLink?)
public bool Equals(FooterLink? other)
Parameters
otherFooterLink
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(FooterLink?, FooterLink?)
public static bool operator ==(FooterLink? left, FooterLink? right)
Parameters
leftFooterLinkrightFooterLink
Returns
implicit operator FooterLink((string Label, string Href))
Creates a link from a label and an address, so a list of links can be written as pairs.
public static implicit operator FooterLink((string Label, string Href) link)
Parameters
Returns
operator !=(FooterLink?, FooterLink?)
public static bool operator !=(FooterLink? left, FooterLink? right)
Parameters
leftFooterLinkrightFooterLink