Click or drag to resize

XlsBorder Class

Represents the border style and properties for a cell in an Excel worksheet.
Inheritance Hierarchy
System Object
Spire.Xls.Core.Spreadsheet XlsObject
Spire.Xls.Core.Spreadsheet XlsBorder

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public class XlsBorder : XlsObject, IBorder, 
	IExcelApplication, IDisposable

The XlsBorder type exposes the following members.

Properties
Name Description
Public property BorderIndex
Returns border index. Read-only.
Public property Color
Returns or sets the primary color of the object, as shown in the table in the remarks section. Use the RGB function to create a color value. Read/write Color.
Public property KnownColor
Returns or sets a ExcelColors value that represents the color of the border
Public property LineStyle
Returns or sets the line style for the border. Read/write LineStyleType.
Public property OColor
Returns or sets the primary color of the object, as shown in the following table. Use the RGB function to create a color value. Read/write Long.
Public property Parent
Reference to Parent object. Read-only.
(Inherited from XlsObject .)
Protected property ReferenceCount
Get quantity of instance references.
(Inherited from XlsObject .)
Public property ShowDiagonalLine
Indicates whether shows diagonal line.
Top
Methods
Name Description
Protected method AddReference
Increase the quantity of reference. User must use this method when new wrapper on object is created or reference on object stored.
(Inherited from XlsObject .)
Protected method CheckDisposed
Checks whether object was disposed and throws exception if it was.
(Inherited from XlsObject .)
Public method Static member ColorToExcelColor
Converts a given Spire.Xls.ExcelColors color to another Spire.Xls.ExcelColors color. Note: The adjustment logic is commented out and currently does nothing.
Public method CopyFrom
Copies the properties from the provided IBorder instance to the current instance.
Public method Dispose
Dispose object and free resources.
(Inherited from XlsObject .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Destructor. Call dispose method of current object.
(Inherited from XlsObject .)
Protected method FindParent(Type)
This method is used to find parent with specific type.
(Inherited from XlsObject .)
Protected method FindParent( Type )
Find parent of object.
(Inherited from XlsObject .)
Protected method FindParent(Type, Boolean)
This method is used to find parent with specific type.
(Inherited from XlsObject .)
Protected method FindParents
Finds parent objects.
(Inherited from XlsObject .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetThemeColor
Retrieves the theme color and its tint value from the border converter.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method OnDispose
Method which can be overriden by users to take any specific actions when object is disposed.
(Inherited from XlsObject .)
Protected method ReleaseReference
Decrease quantity of Reference. User must call this method when freeing resources.
(Inherited from XlsObject .)
Public method setLineStyleAndColor
Sets the line style and color for a specified border type in an Excel cell format.
Protected method SetParent
Sets parent of the object.
(Inherited from XlsObject .)
Public method SetThemeColor
Sets the theme color for the border based on the specified theme color type and tint.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Fields
Name Description
Protected field m_bIsDisposed
Flag which indicates if the object was disposed or not.
(Inherited from XlsObject .)
Top
See Also