Class TabStopCollection
Represents a collection of Tab
Inheritance
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class TabStopCollection : Object, ICollection<TabStop>, IEnumerable<TabStop>, IEnumerable, IList, ICollection
Constructors
TabStopCollection()
TabStopCollection(IEnumerable<TabStop>)
Initializes a new instance of the Tab
Declaration
public TabStopCollection(IEnumerable<TabStop> tabStops)
Parameters
System. The tab stops to be added to the collection. |
TabStopCollection(TabStopCollection)
Initializes a new instance of the Tab
Declaration
public TabStopCollection(TabStopCollection fromCollection)
Parameters
Tab A Tab |
Properties
Count
Gets the number of elements contained in the System.Collections.Generic.ICollection<>.
Declaration
public int Count { get; }
Property Value
System.
|
IsFixedSize
Gets a value indicating whether the System.
Declaration
public bool IsFixedSize { get; }
Property Value
System.
|
IsReadOnly
Gets a value indicating whether the System.Collections.Generic.ICollection<> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
System.
|
IsSynchronized
Gets a value indicating whether access to the System.
Declaration
public bool IsSynchronized { get; }
Property Value
System.
|
Item[Int32]
Gets or sets the System.
Declaration
public object this[int index] { get; set; }
Parameters
System. The index. |
Property Value
System. The System. |
Exceptions
System.
|
SyncRoot
Gets an object that can be used to synchronize access to the System.
Declaration
public object SyncRoot { get; }
Property Value
System.
|
Methods
Add(Object)
Adds an item to the System.
Declaration
public int Add(object value)
Parameters
System. The object to add to the System. |
Returns
System. The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection. |
Add(TabStop)
Adds an item to the System.Collections.Generic.ICollection<>.
Declaration
public void Add(TabStop item)
Parameters
AddRangeCopy(IEnumerable<TabStop>)
Adds a collection of Tab
Declaration
public void AddRangeCopy(IEnumerable<TabStop> items)
Parameters
System. The tab stops to add. |
Clear()
Removes all items from the System.Collections.Generic.ICollection<>.
Declaration
public void Clear()
Clone()
Clones this instance.
Declaration
public TabStopCollection Clone()
Returns
Tab The cloned instance. |
Contains(Object)
Determines whether this instance contains the object.
Declaration
public bool Contains(object value)
Parameters
System. The object to locate in the System. |
Returns
System. true if the System. |
Contains(TabStop)
Determines whether this instance contains the Tab
Declaration
public bool Contains(TabStop item)
Parameters
Returns
System. true if |
CopyTo(Array, Int32)
Copies the elements of the System.
Declaration
public void CopyTo(Array array, int index)
Parameters
System. The one-dimensional System. |
System. The zero-based index in |
Exceptions
System.
|
CopyTo(TabStop[], Int32)
Copies the elements of the System.Collections.Generic.ICollection<> to an System.
Declaration
public void CopyTo(TabStop[] array, int arrayIndex)
Parameters
Tab The one-dimensional System. |
System. The zero-based index in |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<TabStop> GetEnumerator()
Returns
System. An enumerator that can be used to iterate through the collection. |
GetTabStopsByWidth(Single)
Gets the tab stops whose Position is less than or equal to a specific width.
Declaration
public IEnumerable<TabStop> GetTabStopsByWidth(float width)
Parameters
System. The width. |
Returns
GetTrailingDefaultTabStopsByWidth(Single)
Gets the default tab stops by calculating the distance between a specified width and the last custom Tab
Declaration
public IEnumerable<TabStop> GetTrailingDefaultTabStopsByWidth(float width)
Parameters
System. The width. |
Returns
IndexOf(Object)
Determines the index of a specific item in the System.
Declaration
public int IndexOf(object value)
Parameters
System. The object to locate in the System. |
Returns
System. The index of |
Insert(Int32, Object)
Inserts an item to the System.
Declaration
public void Insert(int index, object value)
Parameters
System. The zero-based index at which |
System. The object to insert into the System. |
Exceptions
System.
|
OnAdd(TabStop)
Called after adding a Tab
Declaration
protected virtual void OnAdd(TabStop item)
Parameters
OnChange()
Called after the collection has been changed by adding, removing Tab
Declaration
protected virtual void OnChange()
OnRemove(TabStop)
Called after removing a Tab
Declaration
protected virtual void OnRemove(TabStop item)
Parameters
Remove(Object)
Removes the first occurrence of a specific object from the System.
Declaration
public void Remove(object value)
Parameters
System. The object to remove from the System. |
Remove(TabStop)
Removes the first occurrence of a specific Tab
Declaration
public bool Remove(TabStop item)
Parameters
Returns
System. true if |
RemoveAt(Int32)
Removes the System.
Declaration
public void RemoveAt(int index)
Parameters
System. The zero-based index of the item to remove. |
RemoveRange(IEnumerable<TabStop>)
Removes a bunch of Tab
Declaration
public void RemoveRange(IEnumerable<TabStop> items)
Parameters
System. The tab stops to remove. |
Events
Changed
Occurs after the collection has been changed by adding, removing Tab
Declaration
public event EventHandler Changed
Event Type
System.
|