I have a problem as below:
1) Open a word file, it's OK.
2) in the word file, there is an table with 3 rows inside, it's OK.
3) Insert a row before the last row, like this:
Dim insertrow As Spire.Doc.TableRow = table.Rows(i - 1).Clone()
table.Rows.Insert(i, insertrow);
the row inserted will have the same font size. it's OK.
4) Add a new row below the last row, like this:
row = table.AddRow();
But the new row will not has the same font size like the row above!
If I can get the textRange from the paragraph, then I can use the textRange.CharacterFormat.FontSize.
but I can only get the textRange from ApendText, not an existing paragraph.
It's so strange!
I know I can create a style like this:
ParagraphStyle style = new ParagraphStyle(document);
style.Name = "FontStyle";
style.CharacterFormat.FontName = "Century Gothic";
style.CharacterFormat.FontSize = 20;
document.Styles.Add(style);
p.ApplyStyle(style.Name);
But I just need to copy the same all styles from the last row. So I don't think it's a good idea to create a new style like this.
thank you .
yours,
ivan