/// <summary> /// It copies all the attributes of the element eleToClone to the /// current element. /// </summary> /// <param name="eleToClone">Element that has to be cloned.</param> public void CloneAttributeList(SvgElement eleToClone) { ArrayList aType = new ArrayList(); ArrayList aName = new ArrayList(); ArrayList aValue = new ArrayList(); eleToClone.FillAttributeList(aType, aName, aValue); m_attributes.Clear(); // copy the attributes for (int i = 0; i < aType.Count; i++) { AddAttr((SvgAttribute._SvgAttribute)aType[i], aValue[i]); } // copy the value if (m_bHasValue) { m_sElementValue = eleToClone.m_sElementValue; } }