示例#1
0
 internal static void SetOwner(this IDxfObject parent, IDxfObject child)
 {
     if (child is DxfObject)
     {
         (child as DxfObject).Owner = parent.Handle;
     }
 }
示例#2
0
 internal static List <IDxfObject> SetHandle(this List <IDxfObject> l, IDxfObject o)
 {
     if (o is DxfObject)
     {
         (o as DxfObject).Handle = (l.Count + 1).ToString();
     }
     return(l);
 }
示例#3
0
 internal static void SetOwner(this IDxfObject parent, IDxfObject child, long handle)
 {
     parent.SetOwner(child);
     if (child is DxfObject)
     {
         (child as DxfObject).Handle = handle.ToString();
     }
 }
示例#4
0
 public void AssignHandle(IDxfDocument document, IDxfObject o)
 {
     AddDocument(document).SetHandle(o).Add(o);
 }