TabStopCollection
Represents a collection of TabStop elements.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class TabStopCollection : ICollection<TabStop>, IEnumerable<TabStop>, IList, ICollection, IEnumerable
Inheritance: objectTabStopCollection
Implements:
Constructors
Initializes a new instance of the TabStopCollection class.
public TabStopCollection()
Initializes a new instance of the TabStopCollection class.
public TabStopCollection(IEnumerable<TabStop> tabStops)
The tab stops to be added to the collection.
Initializes a new instance of the TabStopCollection class.
public TabStopCollection(TabStopCollection fromCollection)
A TabStopCollection whose TabStops will be added to the new collection.
Properties
Gets the number of elements contained in the ICollection<T>.
public int Count { get; }
Implements:
Gets a value indicating whether the IList has a fixed size.
public bool IsFixedSize { get; }
Implements:
Gets a value indicating whether the ICollection<T> is read-only.
public bool IsReadOnly { get; }
Implements:
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
public bool IsSynchronized { get; }
Implements:
Gets an object that can be used to synchronize access to the ICollection.
public object SyncRoot { get; }
Implements:
Methods
Adds an item to the ICollection<T>.
public void Add(TabStop item)
The TabStop to add to the ICollection<T>.
Implements:
Adds a collection of TabStops. The items passed as a parameter are copied and their copies are inserted into the ICollection<T>.
public void AddRangeCopy(IEnumerable<TabStop> items)
The tab stops to add.
Removes all items from the ICollection<T>.
public void Clear()
Implements:
Clones this instance.
Determines whether this instance contains the TabStop.
public bool Contains(TabStop item)
The TabStop to locate in the ICollection<T>.
Returns:true if item is found in the ICollection<T>; otherwise, false.
Implements:
Copies the elements of the ICollection to an Array, starting at a particular Array index.
public void CopyTo(Array array, int index)
The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.
indexintThe zero-based index in array at which copying begins.
Implements:
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
public void CopyTo(TabStop[] array, int arrayIndex)
The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in array at which copying begins.
Implements:
Returns an enumerator that iterates through the collection.
public IEnumerator<TabStop> GetEnumerator()
An enumerator that can be used to iterate through the collection.
Implements:
Called after adding a TabStop to the ICollection<T>.
Called after removing a TabStop from the ICollection<T>.
Removes the first occurrence of a specific TabStop from the ICollection<T>.
public bool Remove(TabStop item)
The TabStop to remove from the ICollection<T>.
Returns:true if item was successfully removed from the ICollection<T>; otherwise, false. This method also returns false if item is not found in the original ICollection<T>.
Implements:
Removes a bunch of TabStops from the ICollection<T>.
public void RemoveRange(IEnumerable<TabStop> items)
The tab stops to remove.