using System; using System.Windows.Forms; namespace UtilityLibrary.WinControls { /// <summary> /// Collection of selected items in a TreeListView /// </summary> public class SelectedTreeListViewItemCollection : ListView.SelectedListViewItemCollection { #region Properties /// <summary> /// Gets a TreeListViewItem at the specified index /// </summary> new public TreeListViewItem this[int index] { get{return((TreeListViewItem) base[index]);} } #endregion #region Constructor /// <summary> /// Create a new instance of a SelectedTreeListViewItemCollection /// </summary> /// <param name="TreeListView"></param> public SelectedTreeListViewItemCollection(TreeListEx TreeListView) : base((ListView) TreeListView) { } #endregion #region Functions /// <summary> /// Returns true if the specified item is in the collection /// </summary> /// <param name="item"></param> /// <returns></returns> public bool Contains(TreeListViewItem item) { return(base.Contains((ListViewItem) item)); } /// <summary> /// Index of an item /// </summary> /// <param name="item"></param> /// <returns></returns> public int IndexOf(TreeListViewItem item) { return(base.IndexOf((ListViewItem) item)); } #endregion } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)