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?
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