?? toolbaritemslist.cs
字號:
using System;
using System.Collections;
namespace FreeTextBoxControls.Common {
/// <summary>
/// Collection of ToolbarItems for Toolbar
/// </summary>
public class ToolbarItemsList : IEnumerator, IEnumerable{
public ToolbarItemsList() {}
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(ToolbarItem item) {
itemArray.Add(item);
}
public void Remove(ToolbarListItem item) {
itemArray.Remove(item);
}
public void Clear() {
itemArray.Clear();
}
/// <summary>
/// The Items (ToolbarButton, ToolbarDropDownList, ToolbarSeparator) in the toolbar
/// </summary>
public ToolbarItem this[Int32 index] {
get { return (ToolbarItem) itemArray[index];}
set { itemArray[index] = value;}
}
public int Count {
get {return itemArray.Count;}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -