Hi,
I am trying to dynamically add table to the RadRichTextBox so I have written following code
Code Executed successfully, but while reflecting this code to document error following message shown
{"'0' is not a valid value for property 'LineHeight'."}
I am not able to get LineHeight property from which class. How to set it.
Please Help
Thanks
Sopan Vaidya
I am trying to dynamically add table to the RadRichTextBox so I have written following code
Code Executed successfully, but while reflecting this code to document error following message shown
{"'0' is not a valid value for property 'LineHeight'."}
I am not able to get LineHeight property from which class. How to set it.
Please Help
Thanks
Sopan Vaidya
Table ttable =
new
Table();
ttable.Style = MyTableStyle;
var TabRowColl = TableRowHelpCollection.Where(x => x.ParentTableId == item.ElementKey).ToList();
foreach
(var TR
in
TabRowColl)
{
TableRow TBLR =
new
TableRow();
TBLR.Height = 10;
// TBLR.Style = MyRowStyle;
foreach
(var TC
in
TR.TableCellCollection)
{
TableCell TBLC =
new
TableCell();
//TBLC.Style = new StyleDefinition ();
foreach
(var CB
in
TC.CellDocumentCollection)
{
if
(CB
is
Paragraph)
{
Paragraph PP =
new
Paragraph();
foreach
(var Child
in
CB.Children)
{
if
(Child
is
Span)
{
Span Spn =
new
Span((Child
as
Span).Text);
PP.Children.Add(Spn);
}
else
if
(Child
is
ImageInline)
{
}
}
TBLC.Children.Add(PP);
}
else
if
(CB
is
Table)
{
}
}
TBLR.Cells.Add(TBLC);
}
ttable.Rows.Add(TBLR);
}
CurrentSelectedSection.Children.AddAfter(CurrPara, ttable);