Method Color
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
Color(PdfColor, int)
Sets the color and opacity for this border.
public Border Color(PdfColor color, int opacity = 100)
Parameters
color
PdfColorThe border color.
opacity
intThe opacity value between
0
(fully transparent) and100
(fully opaque).
Returns
- Border
The updated border.
Remarks
Read the Decoration section of the Containers and their content article for examples of using this method.
Exceptions
- ArgumentNullException
color
isnull
.