A word table -> properties gives an Alt Text ribbon where you can enter a Title and Description.
Is this available from with Aspose Words?
A word table -> properties gives an Alt Text ribbon where you can enter a Title and Description.
Hi,
The issues you have found earlier (filed as WORDSNET-5890) have been fixed in this Aspose.Words for .NET 18.6 update and this Aspose.Words for Java 18.6 update.
We added Table.Title and Table.Description properties in Aspose.Words 18.6 to set the table’s title and description. You can find these properties of table in MS Word by selecting Table > Properties> Alt Text tab as shown in attached image. image.png (5.9 KB)
Following code example shows how to create table and set table’s title and description properties.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Table table = builder.StartTable();
builder.InsertCell();
// Set the cell formatting
CellFormat cellFormat = builder.CellFormat;
cellFormat.Width = 250;
cellFormat.LeftPadding = 30;
cellFormat.RightPadding = 30;
cellFormat.TopPadding = 30;
cellFormat.BottomPadding = 30;
builder.Write("Formatted cell");
builder.EndRow();
builder.EndTable();
table.Title = "Aspose table title";
table.Description = "Aspose table description";
doc.Save(MyDir + "out.docx");.