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
stopsIEnumerable<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
Methods
Equals(RichTabStops?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RichTabStops? other)
Parameters
otherRichTabStopsAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
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.