Hi there,
I am wondering how to write date with its superscript day, like:
1st January 2024, where ‘st’ is in superscript style.
regards and thanks
Hi there,
I am wondering how to write date with its superscript day, like:
1st January 2024, where ‘st’ is in superscript style.
regards and thanks
@ibox You can use Font.Superscript property to achieve this. For example see the following code:
Document doc = new Document();
DocumentBuilder buulder = new DocumentBuilder(doc);
buulder.Write("1");
buulder.Font.Superscript= true;
buulder.Write("st");
buulder.Font.Superscript = false;
buulder.Write(" January 2024");
doc.Save(@"C:\Temp\out.docx");
Thank u very much Sir