예제 #1
0
 internal override void ArrangeCopyRange(int RowOfs, int ColOfs, TSheetInfo SheetInfo)
 {
     if ((Shape != null) && (Shape.CopiedTo(SheetInfo.CopiedGen) != null))
     {
         DwgCache.Solver.ContainedRecords.Add(TEscherArcRuleRecord.Clone(this, RowOfs, ColOfs, DwgCache, DwgGroupCache, SheetInfo));
     }
 }
예제 #2
0
        protected override TEscherRecord DoCopyTo(int RowOfs, int ColOfs, TEscherDwgCache NewDwgCache, TEscherDwgGroupCache NewDwgGroupCache, TSheetInfo SheetInfo)
        {
            TEscherArcRuleRecord R = (TEscherArcRuleRecord)base.DoCopyTo(RowOfs, ColOfs, NewDwgCache, NewDwgGroupCache, SheetInfo);

            if (Shape != null)
            {
                R.Shape = (TEscherSpRecord)Shape.CopiedTo(SheetInfo.CopiedGen);
                if (R.Shape != null)
                {
                    R.SpId = R.Shape.ShapeId;
                }
                else
                {
                    R.SpId = 0;
                }
            }
            R.RuleId = DwgCache.Solver.IncMaxRuleId();
            return(R);
        }