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; } } }
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)); }
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); }
public SoftOwnerId(DxfObject value) : base(value) { }
public HardOwnerId(DxfObject value) : base(value) { }
protected OwnerIdBase(DxfObject value) { this.Value = value; }