Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Jul 27, 2022 11:46 am

Hi.

I know I can do like this:
HeaderGrid.Rows[0].Cells[2].Style.BackgroundBrush = Brushes.White;

But I need a special background for the cell like RGB FromArgb(0, 175, 178)

Is that possible and how?

Regards Steen Maigaard
DTU Denmark

steenmaigaardDTU
 
Posts: 7
Joined: Fri Oct 08, 2021 7:59 am

Thu Jul 28, 2022 3:07 am

Hi,

Thanks for your inquiry.
For your requirements, you can refer to the following code. If you have any issue, just feel free to contact us.

Code: Select all
         PdfRGBColor color2 = new PdfRGBColor(0, 175, 178);
            PdfSolidBrush brush = new PdfSolidBrush(color2);
            HeaderGrid.Rows[0].Cells[2].Style.BackgroundBrush = brush;


Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 976
Joined: Tue Mar 08, 2022 2:02 am

Thu Jul 28, 2022 7:34 am

Hello.

Thanks for this wonderful support from all of you, and yes it works now.

Regards Steen

steenmaigaardDTU
 
Posts: 7
Joined: Fri Oct 08, 2021 7:59 am

Tue Aug 16, 2022 7:39 am

Hello,

Thanks for your feedback.
If you have any issue in the future, please don't hesitate to contact us.

Sincerely,
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 976
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.PDF