Table of Contents

Class OnThisPageItem

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

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

Id string

The DOM id of the section the entry links to.

Title string

The 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

string

Title

The text of the link, usually the section's heading.

public string Title { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string)

public void Deconstruct(out string Id, out string Title)

Parameters

Id string
Title string

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(OnThisPageItem?)

public bool Equals(OnThisPageItem? other)

Parameters

other OnThisPageItem

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(OnThisPageItem?, OnThisPageItem?)

public static bool operator ==(OnThisPageItem? left, OnThisPageItem? right)

Parameters

left OnThisPageItem
right OnThisPageItem

Returns

bool

operator !=(OnThisPageItem?, OnThisPageItem?)

public static bool operator !=(OnThisPageItem? left, OnThisPageItem? right)

Parameters

left OnThisPageItem
right OnThisPageItem

Returns

bool