Skip to main content

XlBorder Members

Provides access to the line characteristics of a cell border.

Constructors

Name Description
XlBorder() Initializes a new instance of the XlBorder class with the default settings.

Properties

Name Description
BottomColor Gets or sets the line color of the cell’s bottom border.
BottomLineStyle Gets or sets the line style of the cell’s bottom border. Inherited from XlBordersBase.
DiagonalColor Gets or sets the line color of the cell’s diagonal borders.
DiagonalDown Gets or sets a value indicating whether the downward diagonal border should be displayed in a cell. Inherited from XlBordersBase.
DiagonalDownLineStyle Gets or sets the line style of the cell’s downward diagonal border. Inherited from XlBordersBase.
DiagonalLineStyle Gets or sets the line style of the cell’s diagonal borders. Inherited from XlBordersBase.
DiagonalUp Gets or sets a value indicating whether the upward diagonal border should be displayed in a cell. Inherited from XlBordersBase.
DiagonalUpLineStyle Gets or sets the line style of the cell’s upward diagonal border. Inherited from XlBordersBase.
HorizontalColor

This member supports the internal infrastructure and is not intended to be used directly from your code.

Gets or sets the line color of the horizontal inner borders of a cell range.

HorizontalLineStyle

This member supports the internal infrastructure and is not intended to be used directly from your code.

Gets or sets the line style for the horizontal inner borders of a cell range.

Inherited from XlBordersBase.
LeftColor Gets or sets the line color of the cell’s left border.
LeftLineStyle Gets or sets the line style of the cell’s left border. Inherited from XlBordersBase.
Outline

This member supports the internal infrastructure and is not intended to be used directly from your code.

Gets or sets a value indicating whether the left, right, top and bottom borders should be applied only to the outside borders of a cell range.

Inherited from XlBordersBase.
RightColor Gets or sets the line color of the cell’s right border.
RightLineStyle Gets or sets the line style of the cell’s right border. Inherited from XlBordersBase.
TopColor Gets or sets the line color of the cell’s top border.
TopLineStyle Gets or sets the line style of the cell’s top border. Inherited from XlBordersBase.
VerticalColor

This member supports the internal infrastructure and is not intended to be used directly from your code.

Gets or sets the line color of the vertical inner borders of a cell range.

VerticalLineStyle

This member supports the internal infrastructure and is not intended to be used directly from your code.

Gets or sets the line style for the vertical inner borders of a cell range.

Inherited from XlBordersBase.

Methods

Name Description
AllBorders(XlColor, XlBorderLineStyle) static

Returns the XlBorder object that specifies all outside borders of a cell.

This method is equivalent to the XlBorder.OutlineBorders method and is reserved for future use.

AllBorders(XlColor) static

Returns the XlBorder object that specifies all outside borders of a cell.

This method is equivalent to the XlBorder.OutlineBorders method and is reserved for future use.

Clone() Creates a copy of the current XlBorder object.
CopyFrom(XlBorder) Copies the appropriate properties of the specified object into the current instance of the XlBorder class.
CopyFrom(XlBordersBase) Copies the appropriate properties of the specified object into the current object of the XlBordersBase type. Inherited from XlBordersBase.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current XlBorder instance.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current XlBorder object.
GetType() Gets the Type of the current instance. Inherited from Object.
InsideBorders(XlColor, XlBorderLineStyle) static

This member supports the internal infrastructure and is not intended to be used directly from your code.

Specifies all inside borders of a cell range.

InsideBorders(XlColor) static

This member supports the internal infrastructure and is not intended to be used directly from your code.

Specifies all inside borders of a cell range.

MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
NoBorders() static Returns the XlBorder object specifying that a cell has no visible borders.
OutlineBorders(XlColor, XlBorderLineStyle) static Returns the XlBorder object that specifies the outside borders of a cell.
OutlineBorders(XlColor) static Returns the XlBorder object that specifies the outside borders of a cell.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also