[]
Represents a collection of content items.
public abstract class ContentCollection<T> : IContentList<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : class
T
The type of items in a collection.
Gets the number of content items in the collection.
public virtual int Count { get; }
Gets the first item in the collection.
public virtual T First { get; }
Gets the item at the specified index in the collection.
public T this[int index] { get; }
index
intZero-based index of the element to get.
The content item at the specified index in the collection.
Gets the last item in the collection.
public virtual T Last { get; }
Gets the body range where content items are located.
protected RangeBase Range { get; set; }
Prints debug info of the collection into console.
public virtual void DebugPrint()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
An enumerator that can be used to iterate through the collection.
Prints debug info of the collection into the string.
public virtual string Print()
A string with debug info.