Table of Contents

Method Add

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Add(string)

Creates a new PdfLayer with the specified name and adds it to the collection.

public PdfLayer Add(string name)

Parameters

name string

The name of the new layer.

Returns

PdfLayer

The newly created PdfLayer.

Remarks

The new layer is Visible and has View and Design set as its intents.

Exceptions

ArgumentNullException

Thrown when name is null.

Add(string, bool, params string[])

Creates a new PdfLayer with the specified name, initial visibility, and intents, and adds it to the collection.

public PdfLayer Add(string name, bool visible, params string[] intentNames)

Parameters

name string

The name of the new layer.

visible bool

The initial visibility of the new layer.

intentNames string[]

The intents to assign to the new layer.

Returns

PdfLayer

The newly created PdfLayer.

Exceptions

ArgumentNullException

Thrown when name is null.