Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Line thickness of DiagonalStripe in Excel Export
posted

Hey,

we have an excel exporter for our XamDataGrid. In same cases we have to brush the cells with diagonal stripes. Like this:

e.FormatSettings.FillPattern = FillPatternStyle.DiagonalStripe;
e.FormatSettings.FillPatternForegroundColor = color1;
e.FormatSettings.FillPatternBackgroundColor = color2;

This work for use but is there a way to set the line thickness of the stripes?

Parents
No Data
Reply
  • 1700
    Offline posted

    Hello Simon,

    Unfortunately, the FillPatternStyle property doesn't provide an option to control the thickness of the stripes in the fill pattern. The patterns are predefined, and their appearance (e.g., stripe width or spacing) cannot be customized directly through the API.

    One possible solution might be to create a custom image with diagonal stripes of the desired thickness and apply it as a background for the cells of a template file and use the template file to export the data of the grid there.

    Please let me know if you need any further assistance.

    Regards,
    Ivan Kitanov​​​​

Children
No Data