Free Support Forum -

Combining regular and superscript text


i just want to now can i combine regular and superscript text in one cell? For example, in my document i store physical values (like square meters) , and i don't like when it looks like '14 m2'. I would like to have power as superscript text and other text as regular at the same time.


This message was posted using Aspose.Live 2 Forum



Please check

Please try the following codes:

Cells cells = workbook.Worksheets[0].Cells;
cells["A1"].PutValue("14 m2");
Characters chs = cells["A1"].Characters(4, 1);
chs.Font.IsSuperscript = true;

Thanks Warren!