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
namestringThe name of the new layer.
Returns
Remarks
The new layer is Visible and has View and Design
set as its intents.
Exceptions
- ArgumentNullException
Thrown when
nameisnull.
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
namestringThe name of the new layer.
visibleboolThe initial visibility of the new layer.
intentNamesstring[]The intents to assign to the new layer.
Returns
Exceptions
- ArgumentNullException
Thrown when
nameisnull.