Cell.GetWidthOfValue
Cell.GetWidthOfValue method
Gets the width of the value in unit of pixels.
public int GetWidthOfValue()
Examples
using System;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class CellMethodGetWidthOfValueDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
Cell cell = worksheet.Cells["A1"];
cell.PutValue("CellsJava40307");
int width = cell.GetWidthOfValue();
Console.WriteLine("Width of the cell value: " + width);
}
}
}
See Also
- class Cell
- namespace Aspose.Cells
- assembly Aspose.Cells