Table of Contents

Class RichTabStops

Namespace
RichEdit.Core
Assembly
RichEdit.Core.dll

An immutable, value-equal collection of unique tab stops ordered by position.

public sealed class RichTabStops : IReadOnlyCollection<RichTabStop>, IEnumerable<RichTabStop>, IEnumerable, IEquatable<RichTabStops>
Inheritance
RichTabStops
Implements
Inherited Members

Constructors

RichTabStops(IEnumerable<RichTabStop>)

Copies and validates unique positive positions, alignments and leaders.

public RichTabStops(IEnumerable<RichTabStop> stops)

Parameters

stops IEnumerable<RichTabStop>

Properties

Count

Gets the number of elements in the collection.

public int Count { get; }

Property Value

int

The number of elements in the collection.

Empty

Gets the empty set of explicit stops; the native default tab interval remains available.

public static RichTabStops Empty { get; }

Property Value

RichTabStops

Methods

Equals(RichTabStops?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(RichTabStops? other)

Parameters

other RichTabStops

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<RichTabStop> GetEnumerator()

Returns

IEnumerator<RichTabStop>

An enumerator that can be used to iterate through the collection.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.