[]
Clears the formatting from the borders in the collection.
This method clears the collection-level outer and inside border formatting. It does not clear diagonal borders. To clear diagonal borders, access them through this[BordersIndex] with DiagonalDown or DiagonalUp.
void Clear()
Sub Clear()
IBorders borders = worksheet.Range["B2:E6"].Borders;
borders.LineStyle = BorderLineStyle.DashDot;
borders.Color = Color.Red;
borders.Clear();
borders[BordersIndex.DiagonalDown].Clear();
borders[BordersIndex.DiagonalUp].Clear();