public HSSFName getNameAt(int nameIndex) {int nNames = names.size();if (nNames < 1) {throw new IllegalStateException("There are no defined names in this workbook");}if (nameIndex < 0 || nameIndex > nNames) {throw new IllegalArgumentException("Specified name index " + nameIndex+ " is outside the allowable range (0.." + (nNames-1) + ").");}return names.get(nameIndex);}

public HSSFName getNameAt ( int nameIndex ) { int nNames = names . size ( ) ; if ( nNames < 1 ) { throw new IllegalStateException ( "There are no defined names in this workbook" ) ; } if ( nameIndex < 0 || nameIndex > nNames ) { throw new IllegalArgumentException ( "Specified name index " + nameIndex + " is outside the allowable range (0.." + ( nNames - 1 ) + ")." ) ; } return names . get ( nameIndex ) ; }
public NPOI.SS.UserModel.IName GetNameAt(int nameIndex){int nNames = names.Count;if (nNames < 1){throw new InvalidOperationException("There are no defined names in this workbook");}if (nameIndex < 0 || nameIndex > nNames){throw new ArgumentOutOfRangeException("Specified name index " + nameIndex+ " is outside the allowable range (0.." + (nNames - 1) + ").");}HSSFName result = names[nameIndex];return result;}
