I have the following code to populate a powerpoint table cell using aspose.net slides. I am trying to get part of a cell bold (but keep the rest of it as regular text. Is this possible.
I want to make the car.Name in bold in this line of code below.
tbl[0, row].TextFrame.Text = "[" + car.Name+ "] " + car.Description
here is the full code for reference
TableEx tbl = null;
foreach (ShapeEx shp in sld.Shapes)
{
if (shp is TableEx)
{
tbl = (TableEx)shp;
if (tbl.AlternativeText == altText)
{
int row = 0;
foreach (var car in cars)
{
if (row > 0)
{
tbl.Rows.AddClone(tbl.Rows[0], true);
}
tbl[0, row].TextFrame.Text = "[" + car.Name+ "] " + car.Description;
tbl[1, row].TextFrame.Text = car.Year;
row++;
}
}
}
}