Class CellRichValue
Contents
[
Hide
]CellRichValue class
Represents rich value of the cell.
public abstract class CellRichValue
Properties
Name | Description |
---|---|
virtual AltText { get; set; } | Gets the alt text associated with the image. |
virtual ErrorValue { get; } | Gets the error value type of the cell. |
virtual Image { get; } | Gets the image data of the cell. |
Examples
using System;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class CellsClassCellRichValueDemo
{
public static void Run()
{
// Create a new workbook
Workbook workbook = new Workbook();
// Access first worksheet
Worksheet worksheet = workbook.Worksheets[0];
// Set a rich value in cell A1
Cell cell = worksheet.Cells["A1"];
cell.PutValue("Sample Rich Value");
// Get the rich value from cell A1
CellRichValue richValue = cell.GetRichValue();
// Display the rich value properties
Console.WriteLine("Rich Value: " + richValue.ToString());
// Save the workbook
workbook.Save("RichValueDemo.xlsx");
}
}
}
See Also
- namespace Aspose.Cells
- assembly Aspose.Cells