Exemplo n.º 1
0
 // Methods
 internal Symbol(ItopVector.Core.Figure.Symbol element)
 {
     this.symbolElement = null;
     this.graphPath = null;
     if ((element == null) || (element.Name.ToLower() != "symbol"))
     {
         throw new Exception("ԭʼ�ڵ㲻��Symbol�ڵ�");
     }
     this.symbolElement = element;
     this.Id = this.symbolElement.GetAttribute("id");
     this.graphPath =(GraphicsPath)this.symbolElement.GPath.Clone();
 }
Exemplo n.º 2
0
 // Methods
 internal Symbol(ItopVector.Core.Figure.Symbol element)
 {
     this.symbolElement = null;
     this.graphPath     = null;
     if ((element == null) || (element.Name.ToLower() != "symbol"))
     {
         throw new Exception("原始节点不是Symbol节点");
     }
     this.symbolElement = element;
     this.Id            = this.symbolElement.GetAttribute("id");
     this.graphPath     = (GraphicsPath)this.symbolElement.GPath.Clone();
 }