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

# WarningInfo

## Overview

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

Represents warning info.

This class declares 16 methods for WarningInfo objects in C++ programs.
Available methods include: `GetCellRef`, `GetCode`, `GetDataLossRisk`, `GetMessage`, `GetPartUri`, `GetRowIndex`, `GetSeverity`, `GetSheetName`, `SetCellRef`, `SetCode`, `SetDataLossRisk`, `SetMessage`, and 4 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetCode()` → `std::string` | Gets or sets the code. |
| `SetCode(value: std::string_view)` | Sets the code value. |
| `GetSeverity()` → `DiagnosticSeverity` | Gets or sets the severity. |
| `SetSeverity(value: DiagnosticSeverity)` | Sets the severity value. |
| `GetMessage()` → `std::string` | Gets or sets the message. |
| `SetMessage(value: std::string_view)` | Sets the message value. |
| `GetDataLossRisk()` → `bool` | Gets or sets a value indicating whether data loss risk. |
| `SetDataLossRisk(value: bool)` | Sets the data loss risk value. |
| `GetPartUri()` → `std::string` | Gets or sets the part uri. |
| `SetPartUri(value: std::string_view)` | Sets the part uri value. |
| `GetSheetName()` → `std::string` | Gets or sets the sheet name. |
| `SetSheetName(value: std::string_view)` | Sets the sheet name value. |
| `GetCellRef()` → `std::string` | Gets or sets the cell ref. |
| `SetCellRef(value: std::string_view)` | Sets the cell ref value. |
| `GetRowIndex()` → `std::optional<int>` | Gets or sets the row index. |
| `SetRowIndex(value: std::optional<int>)` | Sets the row index value. |

## See Also

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