Пример #1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfDictionaryWithDefault dictionaryWithDefault = (DxfDictionaryWithDefault)from;

            if (dictionaryWithDefault.DefaultEntry == null)
            {
                return;
            }
            int       index        = 0;
            DxfObject defaultEntry = dictionaryWithDefault.DefaultEntry;

            foreach (DxfDictionaryEntry entry in (ActiveList <IDictionaryEntry>)dictionaryWithDefault.Entries)
            {
                if (entry.Value != defaultEntry)
                {
                    ++index;
                }
                else
                {
                    this.DefaultEntry = this.Entries[index].Value;
                    break;
                }
            }
        }
Пример #2
0
            public override DxfDataCellValue Clone(CloneContext cloneContext)
            {
                DxfObject dxfObject = (DxfObject)null;

                if (this.Value != null)
                {
                    dxfObject = (DxfObject)this.Value.Clone(cloneContext);
                }
                return((DxfDataCellValue) new DxfDataCellValue.SoftOwnerId(dxfObject));
            }
Пример #3
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfObject dxfObject = (DxfObject)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfObject == null)
            {
                dxfObject = (DxfObject) new DxfCellStyleMap();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfObject);
                dxfObject.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfObject);
        }
Пример #4
0
 public SoftOwnerId(DxfObject value)
     : base(value)
 {
 }
Пример #5
0
 public HardOwnerId(DxfObject value)
     : base(value)
 {
 }
Пример #6
0
 protected OwnerIdBase(DxfObject value)
 {
     this.Value = value;
 }