ClassTabStopCollection
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
TabStopCollection()
Initializes a new instance of the TabStopCollection class.
Declaration
public TabStopCollection()
TabStopCollection(IEnumerable<TabStop>)
Initializes a new instance of the TabStopCollection class.
Declaration
public TabStopCollection(IEnumerable<TabStop> tabStops)
Parameters
tabStops
The tab stops to be added to the collection.
TabStopCollection(TabStopCollection)
Initializes a new instance of the TabStopCollection class.
Declaration
public TabStopCollection(TabStopCollection fromCollection)
Parameters
fromCollection
A TabStopCollection whose TabStops will be added to the new collection.
Properties
Count
Gets the number of elements contained in the ICollection<T>.
IsFixedSize
Gets a value indicating whether the IList has a fixed size.
IsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
IsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
SyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Methods
Add(TabStop)
Adds an item to the ICollection<T>.
Declaration
public void Add(TabStop item)
Parameters
item
The TabStop to add to the ICollection<T>.
Implements
Add(object)
Adds an item to the IList.
AddRangeCopy(IEnumerable<TabStop>)
Adds a collection of TabStops. The items passed as a parameter are copied and their copies are inserted into the ICollection<T>.
Declaration
public void AddRangeCopy(IEnumerable<TabStop> items)
Parameters
items
The tab stops to add.
Clear()
Removes all items from the ICollection<T>.
Declaration
public void Clear()
Implements
Clone()
Clones this instance.
Declaration
public TabStopCollection Clone()
Returns
The cloned instance.
Contains(TabStop)
Determines whether this instance contains the TabStop.
Declaration
public bool Contains(TabStop item)
Parameters
item
The TabStop to locate in the ICollection<T>.
Returns
true if item is found in the ICollection<T>; otherwise, false.
Implements
Contains(object)
Determines whether this instance contains the object.
CopyTo(Array, int)
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Declaration
public void CopyTo(Array array, int index)
Parameters
array
The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.
index
The zero-based index in array at which copying begins.
Exceptions
Implements
CopyTo(TabStop[], int)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Declaration
public void CopyTo(TabStop[] array, int arrayIndex)
Parameters
array
TabStop[]
The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.
Implements
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<TabStop> GetEnumerator()
Returns
An enumerator that can be used to iterate through the collection.
Implements
GetTabStopsByWidth(float)
Gets the tab stops whose Position is less than or equal to a specific width.
Declaration
public IEnumerable<TabStop> GetTabStopsByWidth(float width)
Parameters
width
The width.
Returns
A collection of TabStops which fit in the specified width.
GetTrailingDefaultTabStopsByWidth(float)
Gets the default tab stops by calculating the distance between a specified width and the last custom TabStop.
Declaration
public IEnumerable<TabStop> GetTrailingDefaultTabStopsByWidth(float width)
Parameters
width
The width.
Returns
A collection of the TabStops fitting in the range/
IndexOf(object)
Determines the index of a specific item in the IList.
Insert(int, object)
Inserts an item to the IList at the specified index.
Declaration
public void Insert(int index, object value)
Parameters
index
The zero-based index at which value should be inserted.
value
The object to insert into the IList.
Exceptions
Implements
OnAdd(TabStop)
Called after adding a TabStop to the ICollection<T>.
OnChange()
Called after the collection has been changed by adding, removing TabStop, or changing one of the TabStop properties.
Declaration
protected virtual void OnChange()
OnRemove(TabStop)
Called after removing a TabStop from the ICollection<T>.
Remove(TabStop)
Removes the first occurrence of a specific TabStop from the ICollection<T>.
Declaration
public bool Remove(TabStop item)
Parameters
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
Remove(object)
Removes the first occurrence of a specific object from the IList.
RemoveAt(int)
Removes the IList item at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
index
The zero-based index of the item to remove.
Implements
RemoveRange(IEnumerable<TabStop>)
Removes a bunch of TabStops from the ICollection<T>.
Declaration
public void RemoveRange(IEnumerable<TabStop> items)
Parameters
items
The tab stops to remove.