PDFSetOptionalContentGroupStateAction¶
Namespace: O2S.Components.PDF4NET.Actions
Defines a set-OCG-state action.
Inheritance Object → PDFAction → PDFSetOptionalContentGroupStateAction
Remarks
A set-OCG-state action sets the state of one or more optional content groups. Use the AddState and AddOptionalContentGroup methods to build the sequence of states for activating, deactivating and toggling the optional content groups.
Constructors¶
PDFSetOptionalContentGroupStateAction()¶
Initializes a new PDFSetOptionalContentGroupStateAction object.
Properties¶
Actions¶
Gets or sets the sequence of actions to be performed after this action.
Property Value
PDFActionCollection
The sequence of actions to be performed after this action.
CosAction¶
Gets the cos action object.
Property Value
PDFCosDictionary
The cos action dictionary.
Remarks
Direct changes to cos action dictionary can lead to unexpected results if they do not follow the PDF specification.
Type¶
Gets the type of this action.
Property Value
PDFActionType
A PDFActionType enum member specifying the type of this action.
Methods¶
AddOptionalContentGroup(PDFOptionalContentGroup)¶
Adds a new optional content group to this action.
Parameters
ocg PDFOptionalContentGroup
The optional content group whose state will be changed.
AddState(String)¶
Adds a new state to this action.
Parameters
state String
New state, can be ON, OFF or Toggle.