Show / Hide Table of Contents

Class Border

Cell Border style

Inheritance
System.Object
StyleBase
Border
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Syntax
public sealed class Border : StyleBase

Properties

Bottom

Bottom border style

Declaration
public ExcelBorderItem Bottom { get; }
Property Value
Type Description
ExcelBorderItem

Diagonal

0Diagonal border style

Declaration
public ExcelBorderItem Diagonal { get; }
Property Value
Type Description
ExcelBorderItem

DiagonalDown

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

Declaration
public bool DiagonalDown { get; set; }
Property Value
Type Description
System.Boolean

DiagonalUp

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

Declaration
public bool DiagonalUp { get; set; }
Property Value
Type Description
System.Boolean

Left

Left border style

Declaration
public ExcelBorderItem Left { get; }
Property Value
Type Description
ExcelBorderItem

Right

Right border style

Declaration
public ExcelBorderItem Right { get; }
Property Value
Type Description
ExcelBorderItem

Top

Top border style

Declaration
public ExcelBorderItem Top { get; }
Property Value
Type Description
ExcelBorderItem

Methods

BorderAround(ExcelBorderStyle)

Set the border style around the range.

Declaration
public void BorderAround(ExcelBorderStyle Style)
Parameters
Type Name Description
ExcelBorderStyle Style

The border style

BorderAround(ExcelBorderStyle, Color)

Set the border style around the range.

Declaration
public void BorderAround(ExcelBorderStyle Style, Color Color)
Parameters
Type Name Description
ExcelBorderStyle Style

The border style

System.Drawing.Color Color

The color of the border

In This Article
Back to top Generated by DocFX