Method Background
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
Background(PdfColor, int)
Sets the background color and opacity for the content.
public LayoutContainer Background(PdfColor color, int opacity = 100)
Parameters
color
PdfColorThe background color.
opacity
intThe opacity value between
0
(fully transparent) and100
(fully opaque).
Returns
- LayoutContainer
The nested container with the applied background.
Remarks
Read the Containers and their content article for examples of using this method.
Exceptions
- ArgumentNullException
color
isnull
.