4 Answers, 1 is accepted
Hello Roland,
This is the color used for the border of the shape that is drawn. You need to set the IsStroked property as well. Here is an example that shows how you can test this:
var document = new RadFixedDocument();
var page = document.Pages.AddPage();
var editor = new FixedContentEditor(page);
Block block = new Block();
block.GraphicProperties.StrokeColor = new RgbColor(255, 0, 0);
block.GraphicProperties.IsStroked = true;
block.InsertRectangle(new Rect(0,0,100,100));
editor.Position.Translate(100, 100);
editor.DrawBlock(block);
var provider = new PdfFormatProvider();
File.WriteAllBytes(@"..\..\result.pdf", provider.Export(document));
Let me know if you have any other questions.
Regards,
Dimitar
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Hi Roland,
For text, you can use the TextProperties.HighlightColor for the background color and GraphicProperties.FillColor for the ForeColor, here is an example:
Block block = new Block();
block.TextProperties.HighlightColor = new RgbColor(255, 0, 0);//Background
block.GraphicProperties.FillColor = new RgbColor(0, 255, 0);//ForeColor
block.InsertText(new FontFamily("Segoe UI"),"Test");
Can you test this example on your side and see if it is working?
I am looking forward to your reply.
Regards,
Dimitar
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
