Table of Contents

Class Border

Namespace
OfficeOpenXml.Style
Assembly
EPPlus.dll

Cell Border style

public sealed class Border : StyleBase
Inheritance
Border
Inherited Members

Properties

Bottom

Bottom border style

public ExcelBorderItem Bottom { get; }

Property Value

ExcelBorderItem

Diagonal

0Diagonal border style

public ExcelBorderItem Diagonal { get; }

Property Value

ExcelBorderItem

DiagonalDown

A diagonal from the top left to bottom right of the cell

public bool DiagonalDown { get; set; }

Property Value

bool

DiagonalUp

A diagonal from the bottom left to top right of the cell

public bool DiagonalUp { get; set; }

Property Value

bool

Left

Left border style

public ExcelBorderItem Left { get; }

Property Value

ExcelBorderItem

Right

Right border style

public ExcelBorderItem Right { get; }

Property Value

ExcelBorderItem

Top

Top border style

public ExcelBorderItem Top { get; }

Property Value

ExcelBorderItem

Methods

BorderAround(ExcelBorderStyle)

Set the border style around the range.

public void BorderAround(ExcelBorderStyle Style)

Parameters

Style ExcelBorderStyle

The border style

BorderAround(ExcelBorderStyle, Color)

Set the border style around the range.

public void BorderAround(ExcelBorderStyle Style, Color Color)

Parameters

Style ExcelBorderStyle

The border style

Color Color

The color of the border