CreateElement() public method

public CreateElement ( string prefix, string localName, string ns ) : XmlElement
prefix string
localName string
ns string
return System.Xml.XmlElement
示例#1
0
        public override void TestTypeFromCreateElement()
        {
            SvgWindow wnd = new SvgWindow(100, 100, null);
            SvgDocument doc = new SvgDocument(wnd);
            XmlElement elm = doc.CreateElement("", localName, "http://www.w3.org/2000/svg");

            Assert.AreEqual(elmType, elm.GetType());
        }
 private SvgPathElement getPathElement()
 {
     SvgWindow wnd = new SvgWindow(100, 100, null);
     SvgDocument doc = new SvgDocument(wnd);
     return (SvgPathElement)doc.CreateElement("", "path", SvgDocument.SvgNamespace);
 }