---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/definednamemodel
---

# DefinedNameModel

## Overview

`DefinedNameModel` is a class in Aspose.Cells FOSS for C++.

Represents defined name model.

This class declares 10 methods for DefinedNameModel objects in C++ programs.
Available methods include: `GetComment`, `GetFormula`, `GetHidden`, `GetLocalSheetIndex`, `GetName`, `SetComment`, `SetFormula`, `SetHidden`, `SetLocalSheetIndex`, `SetName`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetName()` → `std::string` | Gets or sets the name. |
| `SetName(value: std::string)` | Sets the name value. |
| `GetFormula()` → `std::string` | Gets or sets the formula. |
| `SetFormula(value: std::string)` | Sets the formula value. |
| `GetLocalSheetIndex()` → `std::optional<int>` | Gets or sets the local sheet index. |
| `SetLocalSheetIndex(value: std::optional<int>)` | Sets the local sheet index value. |
| `GetHidden()` → `bool` | Gets or sets a value indicating whether hidden. |
| `SetHidden(value: bool)` | Sets the hidden value. |
| `GetComment()` → `std::string` | Gets or sets the comment. |
| `SetComment(value: std::string)` | Sets the comment value. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)