SetActionOCGStates
Actions, optional content
Description
Atomically replaces the ordered /State payload and optional /PreserveRB preference of an existing SetOCGState action
Syntax
Function TPDFlib.SetActionOCGStates(ActionID: Integer; Const States: Array Of TPDFlibActionOCGStateInfo; PreserveRB: Integer): Integer;Remarks
Adjacent entries with the same state share one PDF name marker while input order and repeated group changes remain intact
All group handles are validated against the selected document before the existing payload changes
See also
SetFormFieldOCGStateAction, AddActionNextSetOCGState, EnumActionOCGStates