New to Telerik UI for WinFormsStart a free 30-day trial

Represents a collection of TabStop elements.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class TabStopCollection : IList, ICollection, IEnumerable

Inheritance: objectTabStopCollection

Implements: ICollectionIEnumerableIList

Constructors

Initializes a new instance of the TabStopCollection class.

C#
public TabStopCollection()

Initializes a new instance of the TabStopCollection class.

C#
public TabStopCollection(IEnumerable<TabStop> tabStops)
Parameters:tabStopsIEnumerable<TabStop>

The tab stops to be added to the collection.

Initializes a new instance of the TabStopCollection class.

C#
public TabStopCollection(TabStopCollection fromCollection)
Parameters:fromCollectionTabStopCollection

A TabStopCollection whose TabStops will be added to the new collection.

Properties

Gets the number of elements contained in the ICollection<T>.

C#
public int Count { get; }

Implements: ICollection.Count

Gets a value indicating whether the IList has a fixed size.

C#
public bool IsFixedSize { get; }

Implements: IList.IsFixedSize

Gets a value indicating whether the ICollection<T> is read-only.

C#
public bool IsReadOnly { get; }

Implements: IList.IsReadOnly

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

C#
public bool IsSynchronized { get; }

Implements: ICollection.IsSynchronized

Gets an object that can be used to synchronize access to the ICollection.

C#
public object SyncRoot { get; }

Implements: ICollection.SyncRoot

Gets or sets the object at the specified index.

C#
public object this[int index] { get; set; }
Parameters:indexint

The index.

Property Value:

The object.

Exceptions:

NotImplementedException

Implements: IList.this[int]

Methods

Adds an item to the IList.

C#
public int Add(object value)
Parameters:valueobject

The object to add to the IList.

Returns:

int

The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.

Implements: IList.Add(object)

Adds an item to the ICollection<T>.

C#
public void Add(TabStop item)
Parameters:itemTabStop

The TabStop to add to the ICollection<T>.

Adds a collection of TabStops. The items passed as a parameter are copied and their copies are inserted into the ICollection<T>.

C#
public void AddRangeCopy(IEnumerable<TabStop> items)
Parameters:itemsIEnumerable<TabStop>

The tab stops to add.

Removes all items from the ICollection<T>.

C#
public void Clear()

Implements: IList.Clear()

Clones this instance.

C#
public TabStopCollection Clone()
Returns:

TabStopCollection

The cloned instance.

Determines whether this instance contains the object.

C#
public bool Contains(object value)
Parameters:valueobject

The object to locate in the IList.

Returns:

bool

true if the object is found in the IList; otherwise, false.

Implements: IList.Contains(object)

Determines whether this instance contains the TabStop.

C#
public bool Contains(TabStop item)
Parameters:itemTabStop

The TabStop to locate in the ICollection<T>.

Returns:

bool

true if item is found in the ICollection<T>; otherwise, false.

Copies the elements of the ICollection to an Array, starting at a particular Array index.

C#
public void CopyTo(Array array, int index)
Parameters:arrayArray

The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.

indexint

The zero-based index in array at which copying begins.

Exceptions:

NotImplementedException

Implements: ICollection.CopyTo(Array, int)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

C#
public void CopyTo(TabStop[] array, int arrayIndex)
Parameters:arrayTabStop[]

The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.

arrayIndexint

The zero-based index in array at which copying begins.

Returns an enumerator that iterates through the collection.

C#
public IEnumerator<TabStop> GetEnumerator()
Returns:

IEnumerator<TabStop>

An enumerator that can be used to iterate through the collection.

Gets the tab stops whose Position is less than or equal to a specific width.

C#
public IEnumerable<TabStop> GetTabStopsByWidth(float width)
Parameters:widthfloat

The width.

Returns:

IEnumerable<TabStop>

A collection of TabStops which fit in the specified width.

Gets the default tab stops by calculating the distance between a specified width and the last custom TabStop.

C#
public IEnumerable<TabStop> GetTrailingDefaultTabStopsByWidth(float width)
Parameters:widthfloat

The width.

Returns:

IEnumerable<TabStop>

A collection of the TabStops fitting in the range/

Determines the index of a specific item in the IList.

C#
public int IndexOf(object value)
Parameters:valueobject

The object to locate in the IList.

Returns:

int

The index of value if found in the list; otherwise, -1.

Implements: IList.IndexOf(object)

Inserts an item to the IList at the specified index.

C#
public void Insert(int index, object value)
Parameters:indexint

The zero-based index at which value should be inserted.

valueobject

The object to insert into the IList.

Exceptions:

NotImplementedException

Implements: IList.Insert(int, object)

Called after adding a TabStop to the ICollection<T>.

C#
protected virtual void OnAdd(TabStop item)
Parameters:itemTabStop

The TabStop which is added.

Called after the collection has been changed by adding, removing TabStop, or changing one of the TabStop properties.

C#
protected virtual void OnChange()

Called after removing a TabStop from the ICollection<T>.

C#
protected virtual void OnRemove(TabStop item)
Parameters:itemTabStop

The TabStop which is removed.

Removes the first occurrence of a specific object from the IList.

C#
public void Remove(object value)
Parameters:valueobject

The object to remove from the IList.

Implements: IList.Remove(object)

Removes the first occurrence of a specific TabStop from the ICollection<T>.

C#
public bool Remove(TabStop item)
Parameters:itemTabStop

The TabStop to remove from the ICollection<T>.

Returns:

bool

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>.

Removes the IList item at the specified index.

C#
public void RemoveAt(int index)
Parameters:indexint

The zero-based index of the item to remove.

Implements: IList.RemoveAt(int)

Removes a bunch of TabStops from the ICollection<T>.

C#
public void RemoveRange(IEnumerable<TabStop> items)
Parameters:itemsIEnumerable<TabStop>

The tab stops to remove.

Events

Occurs after the collection has been changed by adding, removing TabStop, or changing one of the TabStop properties.

C#
public event EventHandler Changed