|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.pdf.graphics.layer.PdfLayerCollection
public class PdfLayerCollection
Represent pdf layer collection.
| Constructor Summary | |
|---|---|
PdfLayerCollection(PdfDictionary dictOptionalContentProperties,
PdfDocumentBase documentBase,
PdfCrossTable crossTable)
Construct an instance with the optional content properties dictionary |
|
PdfLayerCollection(PdfDocumentBase documentBase,
PdfCrossTable crossTable)
Construct an instance |
|
| Method Summary | |
|---|---|
PdfLayer |
addLayer(java.lang.String name)
Add a new pdf layer. |
PdfLayer |
addLayer(java.lang.String name,
PdfVisibility state)
Add a new pdf layer. |
PdfLayer |
get(int index)
Get the pdf layer of the index. |
int |
getCount()
Gets the number of pdf layers contained. |
boolean |
removeLayer(java.lang.String name)
Remove the pdf layer. |
boolean |
removeLayer(java.lang.String name,
boolean withContent)
Remove the pdf layer. |
| Constructor Detail |
|---|
public PdfLayerCollection(PdfDocumentBase documentBase,
PdfCrossTable crossTable)
documentBase - The PdfDocumentBasecrossTable - The pdf cross table
public PdfLayerCollection(PdfDictionary dictOptionalContentProperties,
PdfDocumentBase documentBase,
PdfCrossTable crossTable)
dictOptionalContentProperties - The optional content properties dictionarydocumentBase - The PdfDocumentBase.crossTable - The pdf cross table| Method Detail |
|---|
public PdfLayer get(int index)
index - Pdf layer index
public int getCount()
public PdfLayer addLayer(java.lang.String name)
name - Pdf layer name.
public PdfLayer addLayer(java.lang.String name,
PdfVisibility state)
name - Pdf layer name.state - Pdf layer's visibility.
public boolean removeLayer(java.lang.String name)
name - Pdf layer name.
public boolean removeLayer(java.lang.String name,
boolean withContent)
name - Pdf layer name.withContent - If true,remove content with the pdf layer.Otherwise,false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||