我尝试在带有边框的wpf Richtextbox中创建一个表,我的问题是:
我这样添加新单元格:
tmp_rtf_tabelle_table.RowGroups[0].Rows.Add(new TableRow());
currentRow = tmp_rtf_tabelle_table.RowGroups[0].Rows[4];
currentRow.Cells.Add(new TableCell(new Paragraph(new Run("cell1:")) { BorderThickness = new Thickness(1,0),BorderBrush = brushes.Black }));
currentRow.Cells.Add(new TableCell(new Paragraph(new Run("cell2")) { BorderThickness = new Thickness(0,1,BorderBrush = brushes.Black }));
当我将Border直接添加到表对象时,行没问题,但行也位于单元格之间