Aspose::Cells::NameCollection class
Contents
[
Hide
]NameCollection class
Represents a collection of all the Name objects in the spreadsheet.
class NameCollection
Methods
| Method | Description |
|---|---|
| Add(const U16String& text) | Defines a new name. |
| Add(const char16_t* text) | Defines a new name. |
| Clear() | Remove all defined names which are not referenced by the formulas and data source. If the defined name is referred, we only set Name.ReferTo as null and hide them. |
| Filter(NameScopeType type, int32_t sheetIndex) | Gets all defined name by scope. |
| Get(int32_t index) | Gets the Name element at the specified index. |
| Get(const U16String& text) | Gets the Name element with the specified name. |
| Get(const char16_t* text) | Gets the Name element with the specified name. |
| GetCount() | |
| IsNull() const | Checks whether the implementation object is nullptr. |
| NameCollection(NameCollection_Impl* impl) | Constructs from an implementation object. |
| NameCollection(const NameCollection& src) | Copy constructor. |
| explicit operator bool() const | operator bool() |
| operator=(const NameCollection& src) | operator= |
| Remove(const Vector <U16String>& names) | Remove an array of name. |
| Remove(const U16String& text) | Remove the name. |
| Remove(const char16_t* text) | Remove the name. |
| RemoveAt(int32_t index) | Remove the name at the specific index. |
| RemoveDuplicateNames() | Remove the duplicate defined names. |
| Sort() | Sorts defined names. |
| ~NameCollection() | Destructor. |
Fields
| Field | Description |
|---|---|
| _impl | The implementation object. |
See Also
- Namespace Aspose::Cells
- Library Aspose.Cells for C++