Ejemplo n.º 1
0
        public override XmlElement CreateElement(string prefix, string localName, string namespaceURI)
        {
            switch (localName)
            {
            case "rect":    // modify by lukan, 2008年6月19日10时55分
            {
                SnipRectXmlElement ele = new SnipRectXmlElement(this);
                return(ele);
            }

            case "snip":
            {
                SnipXmlElement ele = new SnipXmlElement(this);
                return(ele);
            }

            case "parts":    // modify by lukan, 2008年6月19日10时55分
            {
                SnipPartsXmlElement ele = new SnipPartsXmlElement(this);
                return(ele);
            }

            case "part":
            {
                SnipPartXmlElement ele = new SnipPartXmlElement(this);
                return(ele);
            }

            case "rects":
            {
                SnipRectsXmlElement ele = new SnipRectsXmlElement(this);
                return(ele);
            }

            case "backImage":
            {
                AnyXmlElement ele = new AnyXmlElement("backImage", this);
                return(ele);
            }

            default:
                return(base.CreateElement(prefix, localName, namespaceURI));
            }
        }
Ejemplo n.º 2
0
        public SnipPartXmlElement CreatePart()
        {
            SnipPartXmlElement _partEle = new SnipPartXmlElement(OwnerDocument);

            return(_partEle);
        }