Cell.GetRichValue
Cell.GetRichValue method
Gets rich value of the cell.
public CellRichValue GetRichValue()
Examples
using System;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class CellMethodGetRichValueDemo
{
public static void Run()
{
// Create a new workbook
Workbook wb = new Workbook();
// Access first worksheet
Worksheet ws = wb.Worksheets[0];
// Set a rich text value in cell A1
ws.Cells["A1"].PutValue("This is rich text");
// Get the rich value from cell A1
CellRichValue richValue = ws.Cells["A1"].GetRichValue();
// Display the rich text value
Console.WriteLine("Rich Text Value: " + ws.Cells["A1"].StringValue);
// Save the workbook
wb.Save("RichValueDemo.xlsx");
}
}
}
See Also
- class CellRichValue
- class Cell
- namespace Aspose.Cells
- assembly Aspose.Cells