public final class DefinedNameCollection extends Object implements Iterable<DefinedName>
Modifier and Type | Method and Description |
---|---|
int |
addDefinedName(String name,
String value,
int localSheetIndex)
Adds defined name to collection and returns index of that defined name.
|
void |
clear()
Removes all elements from defined names collection.
|
DefinedName |
get(int index)
Gets defined name described by index from collection.
|
DefinedName |
get(String definedName)
Gets defined name described by name from collection.
|
Iterator<DefinedName> |
iterator()
Returns an
Iterator for the collection. |
void |
removeDefinedName(String definedName)
Removes the defined name described by name from collection.
|
void |
removeDefinedNameAt(int index)
Removes the defined name described by index from collection.
|
void |
set(int index,
DefinedName value)
Sets defined name described by index from collection.
|
int |
size()
Returns the number of defined names in collection.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public int addDefinedName(String name, String value, int localSheetIndex)
name
- Name of the defined name.value
- Range string.localSheetIndex
- Local sheet index. If the value is -1, defined name is global.public void clear()
public DefinedName get(int index)
index
- Index of the defined name.public DefinedName get(String definedName)
definedName
- Name of the defined name.public Iterator<DefinedName> iterator()
Iterator
for the collection.iterator
in interface Iterable<DefinedName>
Iterator
for the collection.public void removeDefinedName(String definedName)
definedName
- Name of the defined name.public void removeDefinedNameAt(int index)
index
- Index of the defined name.public void set(int index, DefinedName value)
index
- Index of the defined name.value
- defined namepublic int size()
© GemBox d.o.o. — All rights reserved.