[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IBorders.Clear

Clear Method

Clear()

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.

Declaration
void Clear()
Sub Clear()
Examples
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();