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
colorPdfColorThe background color.
opacityintThe 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
colorisnull.