Border

Set Border

Method

Set bold outline border around specified range:
grid.SetRangeBorder(new ReoGridRange(2, 1, 5, 3), ReoGridBorderPos.Outline,
  new ReoGridBorderStyle
  {
    Color = Color.Magenta,
    Style = BorderLineStyle.BoldSolid,
  });

18_2.png

Action

Set all dashed borders inside range:
grid.DoAction(new RGSetRangeBorderAction(new ReoGridRange(2, 1, 5, 3), 
  ReoGridBorderPos.All,
  new ReoGridBorderStyle
  {
    Color = Color.Red,
    Style = BorderLineStyle.Dashed
  }));

19_2.png

Remove Border

Method

grid.RemoveRangeBorder(new ReoGridRange(2, 1, 5, 1), ReoGridBorderPos.All);
or set border's color to Color.Empty to remove borders
grid.SetRangeBorder(new ReoGridRange(2, 1, 5, 3), ReoGridBorderPos.All,
  new ReoGridBorderStyle
  {
    Color = Color.Empty
  };

Action

grid.DoAction(new RGRemoveRangeBorderAction(new ReoGridRange(2, 1, 5, 1), ReoGridBorderPos.All));
or set border's color to Color.Empty to remove borders
grid.DoAction(new RGSetRangeBorderAction(new ReoGridRange(2, 1, 5, 3), 
  ReoGridBorderPos.All,
  new ReoGridBorderStyle
  {
     Color = Color.Empty
  }));

Next: Style

Last edited Feb 5, 2014 at 2:05 PM by unvell, version 3