Class TableRowAdv
Represents the TableRowAdv class.
Implements
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class TableRowAdv : CompositeNode, INode
Constructors
TableRowAdv()
Initializes a new instance of the TableRowAdv class.
Declaration
public TableRowAdv()
Fields
RowFormatProperty
Identifies the RowFormat dependency property.
Declaration
public static readonly DependencyProperty RowFormatProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for the RowFormat dependency property. |
Properties
Cells
Gets the TableCellAdvCollection of the TableRowAdv.
Declaration
public TableCellAdvCollection Cells { get; }
Property Value
Type | Description |
---|---|
TableCellAdvCollection | The TableCellAdvCollection of the TableRowAdv. |
Examples
The following code example demonstrates how to add table cells.
<RichTextBoxAdv:TableRowAdv>
<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>
</RichTextBoxAdv:TableCellAdv>
<!-- Add any number of table cells. -->
</RichTextBoxAdv:TableRowAdv>
// Initialize a row.
TableRowAdv tableRowAdv = new TableRowAdv();
// 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);
tableRowAdv.Cells.Add(tableCellAdv);
// Add any number of cells to the row.
' Initialize a row.
Dim tableRowAdv As New TableRowAdv()
' 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)
tableRowAdv.Cells.Add(tableCellAdv)
' Add any number of cells to the row.
OwnerTable
Gets the owner TableAdv of the TableRowAdv.
Declaration
public TableAdv OwnerTable { get; }
Property Value
Type | Description |
---|---|
TableAdv | The owner TableAdv of the TableRowAdv. |
RowFormat
Gets or Sets the row format.
Declaration
public RowFormat RowFormat { get; set; }
Property Value
Type |
---|
RowFormat |