Flowdocument,Tablecell和Borders

我尝试在带有边框的wpf Richtextbox中创建一个表,我的问题是:

Flowdocument,Tablecell和Borders

我这样添加新单元格:

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直接添加到表对象时,行没问题,但行也位于单元格之间

iCMS 回答:Flowdocument,Tablecell和Borders

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/1603570.html

大家都在问