cart: empty [ Login ]

Edit dxfTableCell content

1 
JGL
8/7/2019 1:54 PM
Hi. I need edit the content of a cell in a table. If I do it as follows:
Visual Basic Code:
Dim vCell As DxfTableCell vCell.Contents.Add(New DxfValueFormat.String, "Some text")
"Some text" is added to the cell but what I need is changing the content of that cell mantaining the format (Font, size, color, etc) I've been searching but I haven't found anything about it. Can you tell me how can I do it? Thanks a lot.
Wout
8/7/2019 2:26 PM
Hi, The cell content format is represented by property DxfTableCellContent.Format, so if you don't change that, then you retain the text style etc. The cell content value is represented by property DxfTableCellContent.Value, and you can call method DxfValue.SetValue on it. - Wout
JGL
8/7/2019 4:05 PM
OK. Thanks. It Works.
1