Sets the border for the specified border positions and style.
Namespace:
Spire.Doc
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public void SetBorder(
BorderPositions borderPos,
BorderStyle borderStyle,
float lineWidth,
Color color,
bool isOverrideCellBorders
)
Public Sub SetBorder (
borderPos As BorderPositions,
borderStyle As BorderStyle,
lineWidth As Single,
color As Color,
isOverrideCellBorders As Boolean
)
public:
void SetBorder(
BorderPositions borderPos,
BorderStyle borderStyle,
float lineWidth,
Color color,
bool isOverrideCellBorders
)
member SetBorder :
borderPos : BorderPositions *
borderStyle : BorderStyle *
lineWidth : float32 *
color : Color *
isOverrideCellBorders : bool -> unit
Parameters
-
borderPos
-
Type:
Spire.Doc.Formatting
BorderPositions
The border positions to set.
-
borderStyle
-
Type:
Spire.Doc.Documents
BorderStyle
The border style to apply.
-
lineWidth
-
Type:
System
Single
The line width of the border.
-
color
-
Type:
System.Drawing
Color
The color of the border.
-
isOverrideCellBorders
-
Type:
System
Boolean
Indicates whether to override cell borders.
See Also