TextPageNumber.BackgroundColor Method

Sets the background color and opacity.

Namespace:  BitMiracle.Docotic.Pdf.Layout
Assembly:  BitMiracle.Docotic.Pdf.Layout (in BitMiracle.Docotic.Pdf.Layout.dll)

Syntax

C#
public TextPageNumber BackgroundColor(
	PdfColor color,
	int opacity = 100
)
VB
Public Function BackgroundColor ( 
	color As PdfColor,
	Optional opacity As Integer = 100
) As TextPageNumber

Parameters

color
Type: BitMiracle.Docotic.Pdf.PdfColor
The background color.
opacity (Optional)
Type: System.Int32
The opacity value between 0 (fully transparent) and 100 (fully opaque).

Return Value

Type: TextPageNumber
The updated page number.

Exceptions

ExceptionCondition
ArgumentNullExceptioncolor is null.

See Also