Example #1
0
 /// <summary>
 /// Adds nodes from a list of nodes.
 /// </summary>
 /// <param name="nodeList">The nodes to add.</param>
 internal void AddRange(NodeList nodeList)
 {
     _entries.AddRange(nodeList._entries);
 }
Example #2
0
        static INodeList ToNodeList(params INode[] nodes)
        {
            var list = new NodeList();

            foreach (var node in nodes)
                list.Add((Node)node);

            return list;
        }
Example #3
0
 /// <summary>
 /// Creates a copy of the list of existing nodes.
 /// </summary>
 /// <param name="existing">The list to copy.</param>
 internal NodeList(NodeList existing)
 {
     _entries = new List<Node>(existing._entries);
 }
Example #4
0
        static Tuple<NodeList, NodeList> MergeRecords(IMutationRecord[] records)
        {
            var added = new NodeList();
            var removed = new NodeList();

            foreach (var record in records)
            {
                if (record.Added != null)
                    added.AddRange((NodeList)record.Added);

                if (record.Removed != null)
                    removed.AddRange((NodeList)record.Removed);
            }

            return Tuple.Create(added, removed);
        }
Example #5
0
 public HtmlMeterElement(Document owner, String prefix = null)
     : base(owner, TagNames.Meter, prefix)
 {
     _labels = new NodeList();
 }
Example #6
0
 /// <summary>
 /// Creates a new HTML progress element.
 /// </summary>
 public HtmlProgressElement(Document owner, String prefix = null)
     : base(owner, Tags.Progress, prefix)
 {
     labels = new NodeList();
 }
 public HtmlFormControlElement(Document owner, String name, String prefix, NodeFlags flags = NodeFlags.None)
     : base(owner, name, prefix, flags | NodeFlags.Special)
 {
     _vstate = new ValidityState();
     _labels = new NodeList();
 }
Example #8
0
 internal void AddRange(NodeList nodeList)
 {
     _entries.AddRange(nodeList._entries);
 }