Table of Contents

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 PdfColor

The background color.

opacity int

The opacity value between 0 (fully transparent) and 100 (fully opaque).

Returns

LayoutContainer

The nested container with the applied background.

Exceptions

ArgumentNullException

color is null.