public class GridNameCollection
extends java.lang.Object
GridName objects.| Modifier and Type | Method and Description |
|---|---|
int |
add(int sheetIndex,
java.lang.String text,
java.lang.String refersTo)
Defines a new name in the specified sheet.
|
int |
add(java.lang.String text,
java.lang.String refersTo)
Defines a new global name.
|
void |
clear()
Removes all Names;
|
GridName |
get(int index)
Gets the
GridName element at the specified index. |
int |
getCount()
Gets the size of enumerator
|
java.util.Iterator |
iterator()
Gets the rows enumerator
|
void |
remove(java.lang.String[] names)
Remove an array of name
|
void |
removeAt(int index)
Remove the name at the specific index.
|
public GridName get(int index)
GridName element at the specified index.index - The zero based index of the element.public int getCount()
public java.util.Iterator iterator()
public int add(java.lang.String text,
java.lang.String refersTo)
text - Name text.It can have sheetname .refersTo - The formula that the name is defined to refer to.It must have a sheetname .eg.'sheet hello!'A1:B2.public int add(int sheetIndex,
java.lang.String text,
java.lang.String refersTo)
sheetIndex - The sheet index that the name is applyed in.text - Name text.It can not have sheetname .refersTo - The formula that the name is defined to refer to.It must have sheetname .eg.'sheet hello!'A1:B2.public void remove(java.lang.String[] names)
names - The names' text.public void removeAt(int index)
Remarks
Please make sure that the name is not referred by the other formulas before calling the method. And if the name is referred,please only set Name.RefersTo as null.index - public void clear()
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.