Back to TableCell
SetContentMethod
Definition
- Namespace
- DOM.Elements.TableElements
- Assembly
- DOM.dll
Sets the content of the current cell.
ITableCell SetContent(IElement content)Parameters
- content
- The element to set as the content of this cell.
Remarks
If the provided content is another, it replaces this cell entirely. Otherwise, all existing children are removed and the new content is added as a child element. TableCell
Examples
csharp
1var cell = new TableCell();
2cell.SetContent(new Paragraph().AddText("Fresh content"));
3