text: public NameXPtg GetNameXPtg(String name, int sheetRefIndex){for (int i = 0; i < _externalBookBlocks.Length; i++){int definedNameIndex = _externalBookBlocks[i].GetIndexOfName(name);if (definedNameIndex < 0){continue;}int thisSheetRefIndex = FindRefIndexFromExtBookIndex(i);if (thisSheetRefIndex >= 0){if (sheetRefIndex == -1 || thisSheetRefIndex == sheetRefIndex){return new NameXPtg(thisSheetRefIndex, definedNameIndex);}}}return null;}