Method BackgroundColor
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
BackgroundColor(PdfColor, int)
Sets the background color and opacity.
public TextStyle BackgroundColor(PdfColor color, int opacity = 100)
Parameters
color
PdfColorThe background color.
opacity
intThe opacity value between
0
(fully transparent) and100
(fully opaque).
Returns
- TextStyle
The copy of this style with the applied background color and opacity.
Exceptions
- ArgumentNullException
color
isnull
.