温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:HeroBeastControls的NavMenu导航控件Demo及源码
当前文件路径:HeroBeastControlsNavMenu/NavMenu/Attributes/NavMenuItems.cs

1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using System.Collections; 5
6
namespace HeroBeastControls.NavMenu 7
{ 8
/// <summary> 9
/// NavMenu项集合操作 10
/// </summary> 11
public class NavMenuItems : CollectionBase 12
{ 13
private ArrayList _itemArrayList; 14
public NavMenuItems() 15
{ 16
_itemArrayList = new ArrayList(); 17
} 18
19
20
public void Add(NavMenuItem _item) 21
{ 22
List.Add(_item); 23
} 24
25
public void Remove(NavMenuItem _item) 26
{ 27
List.Remove(_item); 28
} 29
30
public new int Count 31
{ 32
get 33
{ 34
return List.Count; 35
} 36
} 37
38
public NavMenuItem this[int index] 39
{ 40
get 41
{ 42
return (NavMenuItem)_itemArrayList[index]; 43
} 44
} 45
46
} 47
} 48





}