Class ToolTipItemCollection
Represents a collection of ToolTipItem.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.Controls
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class ToolTipItemCollection : IDisposable, ICloneable, IList, ICollection, IEnumerable
Constructors
ToolTipItemCollection()
Initializes a new instance of the ToolTipItemCollection class.
Declaration
public ToolTipItemCollection()
Properties
Count
Gets the number of elements actually contained in the ToolTipItemCollection.
Declaration
public int Count { get; }
Property Value
| Type |
|---|
| System.Int32 |
Item[Int32]
Gets or sets the ToolTipItem at the specified index.
Declaration
public ToolTipItem this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index of the element to get or set. |
Property Value
| Type | Description |
|---|---|
| ToolTipItem | The element at the specified index. |
Methods
Add(ToolTipItem)
Adds the ToolTipItem in the ToolTipItemCollection.
Declaration
public int Add(ToolTipItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolTipItem | item | An object of ToolTipItem. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Returns the index in which the item is added. |
AddRange(ToolTipItem[])
Adds the range of ToolTipItem in the ToolTipItemCollection.
Declaration
public void AddRange(ToolTipItem[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolTipItem[] | items | Collection of ToolTipItem objects. |
Clear()
Removes all the elements from the ToolTipItemCollection.
Declaration
public void Clear()
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new object that is a copy of this instance. |
Contains(ToolTipItem)
Determines whether an element exists in the ToolTipItemCollection.
Declaration
public bool Contains(ToolTipItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolTipItem | item | An object of ToolTipItem. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if item is found; otherwise, false. |
CopyTo(Array, Int32)
Copies the elements of the collection to an Array, starting at a particular index.
Declaration
public void CopyTo(Array array, int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Array | array | The one-dimentioanl Array that is the destination of the elements copied from Collection. |
| System.Int32 | index | Index in array at which copying begins. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases the unmanaged resources used by the collection and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
GetEnumerator()
Returns an enumerator that iterates through a ToolTipItemCollection.
Declaration
public IEnumerator GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.IEnumerator | An IEnumerator object that can be used to iterate through the ToolTipItemCollection. |
IndexOf(ToolTipItem)
Gets the index of the ToolTipItem in the ToolTipItemCollection.
Declaration
public int IndexOf(ToolTipItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolTipItem | item | An object of ToolTipItem. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Returns the index of the ToolTipItem. |
Insert(Int32, ToolTipItem)
Inserts the ToolTipItem in the specified index.
Declaration
public void Insert(int index, ToolTipItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index in which the element has to be inserted. |
| ToolTipItem | item | An object of ToolTipItem. |
InsertRange(Int32, ToolTipItem[])
Inserts the range of ToolTipItem in the specified index.
Declaration
public void InsertRange(int index, ToolTipItem[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index in which the range of elements has to be inserted. |
| ToolTipItem[] | items | Collection of ToolTipItem objects. |
OnCollectionChanged(ListPropertyChangedEventArgs)
Raises the changed event of ToolTipItemCollection.
Declaration
protected void OnCollectionChanged(ListPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| ListPropertyChangedEventArgs | e | An object of |
Remove(ToolTipItem)
Removes the ToolTipItem from the ToolTipItemCollection.
Declaration
public void Remove(ToolTipItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolTipItem | item | An object of ToolTipItem. |
RemoveAt(Int32)
Removes the ToolTipItem at the specified index from the ToolTipItemCollection.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index of the element to be removed. |
RemoveRange(ToolTipItem[])
Removes the range of ToolTipItem from the ToolTipItemCollection.
Declaration
public void RemoveRange(ToolTipItem[] items)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolTipItem[] | items | Collection of ToolTipItem objects. |
ToString()
Overriden. To return the count of the collection.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | Returns the count of the collection. |
Overrides
Events
CollectionChanged
Occurs after a property in the collection is changed.
Declaration
public event ListPropertyChangedEventHandler CollectionChanged
Event Type
| Type |
|---|
| ListPropertyChangedEventHandler |
Explicit Interface Implementations
ICollection.IsSynchronized
Gets a value indicating whether access to the ToolTipItemCollection is synchronized.
Declaration
bool ICollection.IsSynchronized { get; }
Returns
| Type |
|---|
| System.Boolean |
ICollection.SyncRoot
Gets an object that can be used to synchronize access to the Collection.
Declaration
object ICollection.SyncRoot { get; }
Returns
| Type |
|---|
| System.Object |
IList.Add(Object)
Adds an item to the System.Collections.IList.
Declaration
int IList.Add(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value | The object to add to the System.Collections.IList. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection. |
IList.Contains(Object)
Determines whether the System.Collections.IList contains a specific value.
Declaration
bool IList.Contains(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value | The object to locate in the System.Collections.IList. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the value is found in the System.Collections.IList; otherwise, false. |
IList.get_Item(Int32)
Declaration
object IList.get_Item(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Returns
| Type |
|---|
| System.Object |
IList.IndexOf(Object)
Determines the index of a specific item in the System.Collections.IList.
Declaration
int IList.IndexOf(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value | The object to locate in the System.Collections.IList. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The index of value if found in the list; otherwise, -1. |
IList.Insert(Int32, Object)
Inserts an item to the System.Collections.IList at the specified index.
Declaration
void IList.Insert(int index, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which value should be inserted. |
| System.Object | value | The object to insert into the System.Collections.IList. |
IList.IsFixedSize
Gets a value indicating whether the ToolTipItemCollection has a fixed size.
Declaration
bool IList.IsFixedSize { get; }
Returns
| Type |
|---|
| System.Boolean |
IList.IsReadOnly
Gets a value indicating whether the ToolTipItemCollection is read-only.
Declaration
bool IList.IsReadOnly { get; }
Returns
| Type |
|---|
| System.Boolean |
IList.Item[Int32]
Gets or sets the element at the specified index.
Declaration
object IList.this[] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index of the element to get or set. |
Returns
| Type | Description |
|---|---|
| System.Object | The element at the specified index. |
IList.Remove(Object)
Removes the first occurrence of a specific object from the System.Collections.IList.
Declaration
void IList.Remove(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value | The object to remove from the System.Collections.IList. |
IList.set_Item(Int32, Object)
Declaration
void IList.set_Item(int index, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | value |