/// <summary> /// 从集合中移除指定配置元素 /// </summary> /// <param name="element">指定配置元素</param> public void Remove(TemplateFileElement element) { if (BaseIndexOf(element) > 0) { BaseRemove(element.Name); } }
/// <summary> /// 添加配置元素到集合 /// </summary> /// <param name="element">指定配置元素</param> public void Add(TemplateFileElement element) { BaseAdd(element); }
/// <summary> /// 返回配置元素的索引号 /// </summary> /// <param name="element">配置元素</param> /// <returns>配置元素的索引号</returns> public int Indexof(TemplateFileElement element) { return(BaseIndexOf(element)); }