Hi folks,
In the code below, how do I set the text colour for text "INVOICE TO" (line 10) to gray? This is using RadFixedDocument.
The Block object's TextProperties has a HighlightColor property but not a Color property.
As you can see in the code below, the block is inside a cell within a table row within a table.
Thanks for any pointers.
Ken
01.
Table addressInfoTable =
new
Table();
02.
addressInfoTable.LayoutType = TableLayoutType.FixedWidth;
03.
TableRow infoToRow = addressInfoTable.Rows.AddTableRow();
04.
TableCell infoToCell = infoToRow.Cells.AddTableCell();
05.
infoToCell.PreferredWidth = 350;
06.
Block infoBlock = infoToCell.Blocks.AddBlock();
07.
infoBlock.HorizontalAlignment = HorizontalAlignment.Left;
08.
// infoBlock.TextProperties.HighlightColor = new RgbColor(0, 0, 255);
09.
// infoBlock.BackgroundColor = new RgbColor(255, 10, 10);
10.
infoBlock.InsertText(
"INVOICE TO"
);
11.
infoBlock.InsertLineBreak();
12.
infoBlock.InsertText(invoice.Payer.FirstName() +
" "
+ invoice.Payer.LastName());
13.
infoBlock.InsertLineBreak();