Defaultcelltextinfo usage

I cannot seem to set properties for a table inside my pdf by simply using
cellname.DefaultCellTextInfo.isunderline=true
cellname.DefaultCellTextInfo.fontsize=12

can you please tell me how I can set these properties?

Dear bsarram,

Thank you for considering Aspose.

In this case, you need to create a new TextInfo object and set the DefaultCellTextState to this object. Please refer to DefaultCellTextState in API References.