alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class ToolTipItemCollection

    Represents a collection of ToolTipItem.

    Inheritance
    System.Object
    ToolTipItemCollection
    Implements
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.IDisposable
    System.ICloneable
    System.Collections.IList
    Namespace: Syncfusion.WinForms.Controls
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class ToolTipItemCollection : Object, ICollection, IEnumerable, IDisposable, ICloneable, IList

    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.

    add_CollectionChanged(ListPropertyChangedEventHandler)

    Declaration
    public void add_CollectionChanged(ListPropertyChangedEventHandler value)
    Parameters
    Type Name Description
    ListPropertyChangedEventHandler value

    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 that contains event data.

    Remove(ToolTipItem)

    Removes the ToolTipItem from the ToolTipItemCollection.

    Declaration
    public void Remove(ToolTipItem item)
    Parameters
    Type Name Description
    ToolTipItem item

    An object of ToolTipItem.

    remove_CollectionChanged(ListPropertyChangedEventHandler)

    Declaration
    public void remove_CollectionChanged(ListPropertyChangedEventHandler value)
    Parameters
    Type Name Description
    ListPropertyChangedEventHandler value

    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.

    Events

    CollectionChanged

    Occurs after a property in the collection is changed.

    Declaration
    public event ListPropertyChangedEventHandler CollectionChanged
    Event Type
    Type
    ListPropertyChangedEventHandler

    Implements

    System.Collections.ICollection
    System.Collections.IEnumerable
    System.IDisposable
    System.ICloneable
    System.Collections.IList
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved