text: public void AddName(NameRecord name){_definedNames.Add(name);int idx = FindFirstRecordLocBySid(ExternSheetRecord.sid);if (idx == -1) idx = FindFirstRecordLocBySid(SupBookRecord.sid);if (idx == -1) idx = FindFirstRecordLocBySid(CountryRecord.sid);int countNames = _definedNames.Count;_workbookRecordList.Add(idx + countNames, name);}