Beispiel #1
0
		internal virtual void Replace(int index, XML xml)
		{
			if (index < Length())
			{
				Rhino.Xmlimpl.XmlNode.InternalList newAnnoList = new Rhino.Xmlimpl.XmlNode.InternalList();
				newAnnoList.Add(_annos, 0, index);
				newAnnoList.Add(xml);
				newAnnoList.Add(_annos, index + 1, Length());
				_annos = newAnnoList;
			}
		}
Beispiel #2
0
		private void Insert(int index, XML xml)
		{
			if (index < Length())
			{
				Rhino.Xmlimpl.XmlNode.InternalList newAnnoList = new Rhino.Xmlimpl.XmlNode.InternalList();
				newAnnoList.Add(_annos, 0, index);
				newAnnoList.Add(xml);
				newAnnoList.Add(_annos, index, Length());
				_annos = newAnnoList;
			}
		}
Beispiel #3
0
		internal XMLList(XMLLibImpl lib, Scriptable scope, XMLObject prototype) : base(lib, scope, prototype)
		{
			_annos = new Rhino.Xmlimpl.XmlNode.InternalList();
		}