internal static void SetOwner(this IDxfObject parent, IDxfObject child) { if (child is DxfObject) { (child as DxfObject).Owner = parent.Handle; } }
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); }
internal static void SetOwner(this IDxfObject parent, IDxfObject child, long handle) { parent.SetOwner(child); if (child is DxfObject) { (child as DxfObject).Handle = handle.ToString(); } }
public void AssignHandle(IDxfDocument document, IDxfObject o) { AddDocument(document).SetHandle(o).Add(o); }