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;}
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;}