Thetype exposes the following members.
Gets and sets the color with a 32-bit ARGB value.
Gets or sets theof the border.
Gets or sets the cell border type.
Gets and sets the theme color of the border.
Determines whether the specified(Inherited from is equal to the current . .)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from .)
Serves as a hash function for a particular type.(Inherited from .)
Gets the type of the current instance.(Inherited from .)
Creates a shallow copy of the current(Inherited from . .)
Returns a string that represents the current object.(Inherited from .)
[C#] Style style = cell.GetStyle(); //Set top border style and color Border border = style.Borders[BorderType.TopBorder]; border.LineStyle = CellBorderType.Medium; border.Color = Color.Red; cell.SetStyle(style); [Visual Basic] Dim style as Style = cell.GetStyle() 'Set top border style and color Dim border as Border = style.Borders(BorderType.TopBorder) border.LineStyle = CellBorderType.Medium border.Color = Color.Red cell.SetStyle(style);