Superscript styling in a Cells


#1

Hi,
I want to make a part of the text in a cell to be superscripted.

How do I do it?

Tarun


#2

Hi Tarun,

Please try:

Excel excel = new Excel();
Cell cell = excel.Worksheets[0].Cells["A1"];
cell.PutValue("X2");
int length = cell.StringValue.Length;
cell.Characters(1, 1).Font.IsSuperscript = true;