[]
Gets or sets whether the style includes the IBorder.Color, IBorder.ColorIndex,IBorder.LineStyle, and IBorder.Weight border properties.
Use this property to control or inspect whether border settings defined on the style are included when the style is applied.
bool IncludeBorder { get; set; }
Property IncludeBorder As Boolean
IStyle style = workbook.Styles.Add("borderStyle");
style.Borders.LineStyle = BorderLineStyle.DashDot;
style.IncludeBorder = true;
worksheet.Range["A1"].Style = style;
bool includeBorder = style.IncludeBorder;