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