ImageGear Professional v18.2 > API Reference Guide > PDF Component API Reference > PDF Component Objects > General Objects > IGPDFDoc Object > IGPDFDoc Methods > CreateDictionary Method |
Creates a new optional-content membership dictionary object in the given document for the given layers and visibility policy.
To add layer to the existing dictionary, get the current layers 'list, modify it, then create a new dictionary with the new list of layers.
IIGPDFDoc.CreateDictionary( /*[in]*/ IIGPDFLayerArray* pArrLayers, /*[in]*/ LONG nVisPolicy, /*[out,retval]*/ IIGPDFDictionary ** ppPDFDictionary)
Name | Description |
---|---|
pArrLayers | Array of layers to be the members of the dictionary. |
nVisPolicy | The visibility policy that determines the visibility of content with respect to the ON/OFF state of the layers listed in the dictionary. |
The newly created dictionary object, or NULL if no layers are supplied.