Class TableCellAdv
Represents the TableCellAdv class.
Implements
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class TableCellAdv : CompositeNode, INodeExamples
The following code example demonstrates how to define a table cell.
<RichTextBoxAdv:TableCellAdv>
    <RichTextBoxAdv:TableCellAdv.CellFormat>
       <RichTextBoxAdv:CellFormat CellWidth="200"/>
    </RichTextBoxAdv:TableCellAdv.CellFormat>
    <RichTextBoxAdv:ParagraphAdv>
        <RichTextBoxAdv:SpanAdv>First cell in first row.</RichTextBoxAdv:SpanAdv>
    </RichTextBoxAdv:ParagraphAdv>
    <!-- Add any number of blocks to the table cell. --> 
</RichTextBoxAdv:TableCellAdv>// Initialize a table cell.
TableCellAdv tableCellAdv = new TableCellAdv();
tableCellAdv.CellFormat.CellWidth = 200;
// Initializes a paragraph.
ParagraphAdv paragraphAdv = new ParagraphAdv();
SpanAdv spanAdv = new SpanAdv();
spanAdv.Text = "First cell in first row.";
paragraphAdv.Inlines.Add(spanAdv);
tableCellAdv.Blocks.Add(paragraphAdv);
// Add any number of blocks to the table cell.' Initialize a table cell.
Dim tableCellAdv As New TableCellAdv()
tableCellAdv.CellFormat.CellWidth = 200
' Initializes a paragraph.
Dim paragraphAdv As New ParagraphAdv()
Dim spanAdv As New SpanAdv()
spanAdv.Text = "First cell in first row."
paragraphAdv.Inlines.Add(spanAdv)
tableCellAdv.Blocks.Add(paragraphAdv)
' Add any number of blocks to the table cell.Constructors
TableCellAdv()
Initializes a new instance of the TableCellAdv class.
Declaration
public TableCellAdv()Properties
Blocks
Gets the BlockAdvCollection of the TableCellAdv.
Declaration
public BlockAdvCollection Blocks { get; }Property Value
| Type | Description | 
|---|---|
| BlockAdvCollection | The BlockAdvCollection of the TableCellAdv. | 
CellFormat
Gets or sets the CellFormat of the TableCellAdv.
Declaration
public CellFormat CellFormat { get; set; }Property Value
| Type | Description | 
|---|---|
| CellFormat | The CellFormat of the TableCellAdv. |