ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2016-09-04 21:29:10

Palle
Member
Registered: 2016-09-04
Posts: 1

[WPF] All borders get same color.

I'd expect this code to generate one red, and one green border.
Instead they always get the color of the last call to SetRangeBorders.
This is tested in WPF.

var sheet = grid.CurrentWorksheet;

var borderStyleRed = new RangeBorderStyle(SolidColor.Red, BorderLineStyle.BoldDashed);
sheet.SetRangeBorders(1, 0, 1, sheet.ColumnCount, BorderPositions.Outside, borderStyleRed);

var borderStyleGreen = new RangeBorderStyle(SolidColor.Green, BorderLineStyle.BoldDashed);
sheet.SetRangeBorders(3, 0, 1, sheet.ColumnCount, BorderPositions.Outside, borderStyleGreen);


Borders

Offline

#2 2016-09-08 00:42:27

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: [WPF] All borders get same color.

Thanks Palle! This is a bug in WPF edition. We will fix it in next release.

Offline

#3 2016-12-26 07:30:57

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: [WPF] All borders get same color.

This bug has been fixed.

Offline

Board footer

Powered by FluxBB