GridCells.SetBorders

GridCells.SetBorders method

Sets borders for a cells range.

public void SetBorders(int firstRow, int firstColumn, int rowNumber, int columnNumber, 
    SetBorderPosition position, WebBorderStyle borderStyle)
ParameterTypeDescription
firstRowInt32The first row number of the range(zero based).
firstColumnInt32The first column number of the range(zero based).
rowNumberInt32The rows number.
columnNumberInt32The columns number.
positionSetBorderPositionThe border position.
borderStyleWebBorderStyleThe border style.

Examples

[C#]
  GridWeb GridWeb1 = new GridWeb();
  WebBorderStyle borderStyle1 = new WebBorderStyle();
 GridWeb1.WorkSheets[0].Cells.SetBorders(0, 0, 5, 8, SetBorderPosition.Outline, borderStyle1);

[VB]
	GridWeb1.WebWorksheets(0).Cells.SetBorders(0, 0, 5, 8, SetBorderPosition.Outline, borderStyle1)

See Also