📄 elementcontrols.cs
字号:
namespace Imps.Client.Pc
{
using System;
using System.Collections;
using System.Reflection;
public class ElementControls : CollectionBase
{
public int Add(Element control)
{
return base.List.Add(control);
}
public void AddHead(Element control)
{
base.List.Insert(0, control);
}
public void Remove(Element control)
{
try
{
base.List.Remove(control);
}
catch
{
}
}
public Element Search(string name)
{
foreach (Element element in base.List)
{
if (element.NameID == name)
{
return element;
}
}
return null;
}
public Element this[int index]
{
get
{
return (base.List[index] as Element);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -