[]
Represents a list of FormattingBag items.
public abstract class FormattingBagList<T> : FormattingBag, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : FormattingBag
T
Gets count of items in the list.
public int Count { get; }
Gets the item by its index in the list.
public T this[int index] { get; }
index
intThe item index in the list.
An item by its index in the list.
Gets the list of items id.
protected List<Guid> Items { get; set; }
Removes all items from the list.
public virtual void Clear()
protected bool Equals(FormattingBagList<T> other)
other
FormattingBagList<T>public override bool Equals(object obj)
obj
objectFixes all inherited values as "direct" values for this instance.
protected override void FixInheritedValues()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
An enumerator that can be used to iterate through the collection.
public override int GetHashCode()
Searches for the specified object and returns the zero-based index of the first occurrence within the entire list.
protected int IndexOf(T item)
item
TThe object to locate in the list.
The zero-based index of the first occurrence of item within the entire lis, if found; otherwise, –1.
Inserts a new item to the list.
protected T Insert(int index, Guid guid)
index
intThe item index.
guid
System.GuidThe item GUID.
The inserted item.
Inserts a new item to the list.
protected T Insert(int index)
index
intThe item index.
The inserted item.
Removes an item from the list.
public virtual void Remove(int index)
index
intThe index of the item to remove.
Removes items from the list based on predicate.
public virtual int RemoveAll(Predicate<T> match)
match
System.Predicate<T><T>Predicate deciding should item be removed or not.