Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

269
Views
Cómo agregar atributos de color, peso de fuente, estilo de fuente y alineación de texto dentro de c# y usando el método Reemplazar

Tengo este fragmento de código:

 enter else { rowData = rowData.Equals("False") || rowData.Equals("True") ? rowData.Replace("False", "No").Replace("True", "Yes") : rowData; rowData = rowData.Replace("<img", $"<img width='{contentWidth}' height='100%' "); rowData = rowData.Replace("font-size:", "").Replace("font-family:", ""); rowData = $"<div style= 'font-size:{builder.Font.Size}pt;font-family:{builder.Font.Name};'>{rowData}</div>"; builder.InsertHtml(rowData); }

Pero también necesito hacer cambios en los atributos de color, peso de fuente, estilo de fuente y alineación de texto. Para el color, por ejemplo, probé .Replace("color:","") y en la siguiente línea color:{builder.Font.Color}; , pero lo conseguí.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!