public void CopyToReferencedElement(XmlElement refEl)
{
// X and Y become a translate portion of any transform, width and height may get passed on
if (X.AnimVal.Value != 0 || Y.AnimVal.Value != 0)
{
saveTransform = this.GetAttribute("transform");
this.SetAttribute("transform", saveTransform + " translate(" + X.AnimVal.Value + "," + Y.AnimVal.Value + ")");
}
if (refEl is SvgSymbolElement)
{
refEl.SetAttribute("width", (HasAttribute("width")) ? GetAttribute("width") : "100%");
refEl.SetAttribute("height", (HasAttribute("height")) ? GetAttribute("height") : "100%");
}
if (refEl is SvgSymbolElement)
{
saveWidth = refEl.GetAttribute("width");
saveHeight = refEl.GetAttribute("height");
if (HasAttribute("width"))
refEl.SetAttribute("width", GetAttribute("width"));
if (HasAttribute("height"))
refEl.SetAttribute("height", GetAttribute("height"));
}
}