示例#1
0
文件: Headers.cs 项目: phiree/dzdocs
        public Header[] GetHeaders()
        {
            ElementList nl = SelectElements("header");
            Header[] headers = new Header[nl.Count];

            int i = 0;
            foreach (Element e in nl)
            {
                headers[i] = (Header) e;
                i++;
            }
            return headers;
        }
示例#2
0
文件: Headers.cs 项目: phiree/dzdocs
 /// <summary>
 /// Adds the given Header
 /// </summary>
 /// <param name="header"></param>
 /// <returns>returns the given Header</returns>
 public Header AddHeader(Header header)
 {
     AddChild(header);
     return header;
 }
示例#3
0
文件: Headers.cs 项目: phiree/dzdocs
 /// <summary>
 /// Adds a new Header
 /// </summary>
 /// <param name="name">header name</param>
 /// <param name="val">header value</param>
 /// <returns>returns the new added header</returns>
 public Header AddHeader(string name, string val)
 {
     Header header = new Header(name, val);
     AddChild(header);
     return header;
 }
示例#4
0
文件: Headers.cs 项目: phiree/dzdocs
 /// <summary>
 /// Adds a new Header
 /// </summary>
 /// <returns></returns>
 public Header AddHeader()
 {
     Header h = new Header();
     AddChild(h);
     return h;
 }