Class PdfActionOcgState
This is a helper class for optional content states use in Set-OCG-State actions.
public class PdfActionOcgState
- Inheritance
-
PdfActionOcgState
- Inherited Members
Remarks
This is a helper class for optional content states use in Set-OCG-State actions.
See
Constructors
PdfActionOcgState(PdfName, IList<PdfDictionary>)
Constructs an optional content state object.
public PdfActionOcgState(PdfName state, IList<PdfDictionary> ocgs)
Parameters
state
PdfNamea PdfName describing the state. Shall be one of the following: OFF , ON , Toggle
ocgs
IList<PdfDictionary>a list of the OCG dictionaries
Methods
GetObjectList()
Gets a list of PdfObject that is describing this particular optional content group states.
public virtual IList<PdfObject> GetObjectList()
Returns
GetOcgs()
Gets a list of optional content groups that shall have the state changed
public virtual IList<PdfDictionary> GetOcgs()
Returns
- IList<PdfDictionary>
the list of optional content groups
GetState()
Gets the state the optional content groups should be switched to
public virtual PdfName GetState()