MonoReports.Renderers.SectionRenderer.Render C# (CSharp) Method

Render() public method

public Render ( Cairo c, MonoReports control ) : void
c Cairo
control MonoReports
return void
        public void Render(Cairo.Context c, MonoReports.Model.Controls.Control control)
        {
            Section section = control as Section;
            Rectangle borderRect;
            c.Save ();
            borderRect = new Rectangle (section.Location.X, section.Location.Y, section.Width, section.Height);
            c.ClipRectangle (borderRect);
            borderRect = new Rectangle (section.Location.X, section.Location.Y, section.Width, section.Height);
            c.FillRectangle (borderRect, section.BackgroundColor.ToCairoColor ());

            c.Restore ();
        }