PdfDocument.CreateLayer Method (String, Boolean, PdfLayerIntent[])

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > PdfDocument Class > PdfDocument Methods > CreateLayer Method > CreateLayer Method (String, Boolean, PdfLayerIntent[])
Creates a new PdfLayer with specified name and properties and adds it to the collection of documents layers.

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

Syntax

C#
public PdfLayer CreateLayer(
	string name,
	bool visible,
	params PdfLayerIntent[] intents
)
VB
Public Function CreateLayer ( 
	name As String,
	visible As Boolean,
	ParamArray intents As PdfLayerIntent()
) As PdfLayer

Parameters

name
Type: System.String
The name for the new layer.
visible
Type: System.Boolean
The visibility state for the new layer.
intents
Type: BitMiracle.Docotic.Pdf.PdfLayerIntent[]
The intents to specify for the new layer.

Return Value

Type: PdfLayer
The newly created PdfLayer.

See Also