?? toolbardropdownlistitems.cs
字號:
using System;
using System.Collections;
namespace FreeTextBoxControls.Common {
/// <summary>
/// Collection for ToolbarDropDownList
/// </summary>
public class ToolbarDropDownListItems : IEnumerator, IEnumerable {
public ToolbarDropDownListItems() {}
private ArrayList itemArray = new ArrayList();
private int index = -1;
// Return this class as the Enumerator
public IEnumerator GetEnumerator() {
return (IEnumerator) this;
}
public bool MoveNext() {
index++;
if (index < itemArray.Count) {
return true;
} else {
return false;
}
}
public void Reset() {
index = -1;
}
public object Current {
get{ return itemArray[index]; }
}
public void Add(ToolbarListItem item) {
itemArray.Add(item);
}
public void Remove(ToolbarListItem item) {
itemArray.Remove(item);
}
public void Clear() {
itemArray.Clear();
}
public ToolbarListItem this[Int32 index] {
get { return (ToolbarListItem) itemArray[index];}
set { itemArray[index] = value;}
}
public int Count {
get {return itemArray.Count;}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -