internal void CopyFrom(THLinkList aHLinkList, TSheetInfo SheetInfo) { if (aHLinkList.FList == FList) { XlsMessages.ThrowException(XlsErr.ErrInternal); //Should be different objects } for (int i = 0; i < aHLinkList.Count; i++) { Add((THLinkRecord)THLinkRecord.Clone(aHLinkList[i], SheetInfo)); } }
internal void CopyObjectsFrom(THLinkList aHLinkList, TXlsCellRange CopyRange, int RowOfs, int ColOfs, TSheetInfo SheetInfo) { if (aHLinkList == null) { return; } int aCount = aHLinkList.Count; for (int i = 0; i < aCount; i++) { THLinkRecord r = aHLinkList[i]; if (r.FirstCol >= CopyRange.Left && r.LastCol <= CopyRange.Right && r.FirstRow >= CopyRange.Top && r.LastRow <= CopyRange.Bottom) { Add(((THLinkRecord)THLinkRecord.Clone(r, SheetInfo)).Offset(RowOfs, ColOfs)); } } }