Click or drag to resize

Borders Class

Represents a collection of the border. [!:Spire.Doc.Border]

When dealing with page borders and image borders, only four basic border options are provided: left border, top border, right border and bottom border. Any attempt to apply border designs beyond these four basic styles will result in the system issuing error notifications, ensuring that your actions comply with established rules.

When dealing with paragraph borders and table borders, only six basic border options are provided: left border, top border, right border, bottom border, horizontal border and vertical border. Any attempt to apply border designs beyond these six basic styles will result in the system issuing error notifications, ensuring that your actions comply with established rules.

When dealing with cell borders, only six basic border options are provided: left border, top border, right border, bottom border, diagonalDown border and diagonalUp border. Any attempt to apply border designs beyond these six basic styles will result in the system issuing error notifications, ensuring that your actions comply with established rules.

Inheritance Hierarchy
System Object
Spire.Doc OwnerHolder
Spire.Doc.Documents.XML DocumentSerializable
Spire.Doc.Documents Borders

Namespace: Spire.Doc.Documents
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class Borders : DocumentSerializable, IEnumerable

The Borders type exposes the following members.

Properties
Name Description
Public property BorderType
Sets style of the borders.
Public property Bottom
Gets bottom border.
Public property Color
Gets or sets color of the borders.
Public property Count
Gets the total number of possible border positions available for this borders.
Public property DiagonalDown
Gets the border applied diagonally downwards.
Public property DiagonalUp
Gets the border applied diagonally upwards.
Public property Document
Gets the document.
(Inherited from OwnerHolder .)
Public property Horizontal
Gets horizontal border.
Public property IsShadow
Gets or sets whether borders are drawn with shadow.
Public property Item Int32
This indexer provides access to the border property based on the index.
Public property Item BorderPositions
This indexer provides access to the border property based on the specified border position.
Public property Left
Gets left border.
Public property LineWidth
Gets or sets width of the borders.
Public property NoBorder
Gets whether the border exists
Public property Right
Gets right border.
Public property Space
Gets or sets the width of space to maintain between borders and text within borders.
Public property Top
Gets top border.
Public property Vertical
Gets vertical border.
Protected property XDLSHolder (Inherited from DocumentSerializable .)
Top
Methods
Name Description
Public method ClearFormatting
Clears formatting for each border in the borders.
Protected method CloneImpl (Inherited from DocumentSerializable .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetEnumerator
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method InitXDLSHolder (Overrides DocumentSerializable InitXDLSHolder .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method ReadXmlAttributes (Inherited from DocumentSerializable .)
Protected method ReadXmlContent (Inherited from DocumentSerializable .)
Protected method RestoreReference (Inherited from DocumentSerializable .)
Public method SetBordersAttribute
Sets the border attributes for the specified border type, line width, and color.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Protected method WriteXmlAttributes (Inherited from DocumentSerializable .)
Protected method WriteXmlContent (Inherited from DocumentSerializable .)
Top
Fields
Name Description
Protected field m_doc (Inherited from OwnerHolder .)
Top
See Also