コード例 #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
ファイル: DxfDataCellValue.cs プロジェクト: 15831944/WW
            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
ファイル: DxfDataCellValue.cs プロジェクト: 15831944/WW
 public SoftOwnerId(DxfObject value)
     : base(value)
 {
 }
コード例 #5
0
ファイル: DxfDataCellValue.cs プロジェクト: 15831944/WW
 public HardOwnerId(DxfObject value)
     : base(value)
 {
 }
コード例 #6
0
ファイル: DxfDataCellValue.cs プロジェクト: 15831944/WW
 protected OwnerIdBase(DxfObject value)
 {
     this.Value = value;
 }