Prefix Table Elements Styles with HtmlSaveOptions.TableCssId Property

Possible Usage Scenarios

Aspose.Cells allows you to prefix the styles of table elements with the HtmlSaveOptions.TableCssId property. Suppose you set this property to a value such as MyTest_TableCssId; you will then find table element styles as shown below:

table#MyTest_TableCssId

#MyTest_TableCssId tr

#MyTest_TableCssId col

#MyTest_TableCssId br

etc.

The following screenshot shows the effect of using the HtmlSaveOptions.TableCssId property on the output HTML.

todo:image_alt_text

Prefix Table Elements Styles with HtmlSaveOptions.TableCssId Property

The following sample code demonstrates how to make use of the HtmlSaveOptions.TableCssId property. Please check the output HTML generated by the code for reference.

Sample Code