Line.Color Method

Sets the color and opacity for this line.

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

Syntax

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

Parameters

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

Return Value

Type: Line
The updated line.

Exceptions

ExceptionCondition
ArgumentNullExceptioncolor is null.

See Also