Class OnThisPageItem
One entry in a TwOnThisPage: a link to a section of the page.
public sealed record OnThisPageItem : IEquatable<OnThisPageItem>
- Inheritance
-
OnThisPageItem
- Implements
- Inherited Members
Constructors
OnThisPageItem(string, string)
One entry in a TwOnThisPage: a link to a section of the page.
public OnThisPageItem(string Id, string Title)
Parameters
IdstringThe DOM id of the section the entry links to.
TitlestringThe text of the link, usually the section's heading.
Properties
Id
The DOM id of the section the entry links to.
public string Id { get; init; }
Property Value
Title
The text of the link, usually the section's heading.
public string Title { get; init; }
Property Value
Methods
Deconstruct(out string, out string)
public void Deconstruct(out string Id, out string Title)
Parameters
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(OnThisPageItem?)
public bool Equals(OnThisPageItem? other)
Parameters
otherOnThisPageItem
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(OnThisPageItem?, OnThisPageItem?)
public static bool operator ==(OnThisPageItem? left, OnThisPageItem? right)
Parameters
leftOnThisPageItemrightOnThisPageItem
Returns
operator !=(OnThisPageItem?, OnThisPageItem?)
public static bool operator !=(OnThisPageItem? left, OnThisPageItem? right)
Parameters
leftOnThisPageItemrightOnThisPageItem