AddOptionalContentConfigRadioGroup

Optional content, radio groups, viewer interaction

Description

Creates a mutually exclusive group containing two distinct optional-content groups

Syntax

Delphi

Function TPDFlib.AddOptionalContentConfigRadioGroup(OptionalContentConfigID, FirstOptionalContentGroupID, SecondOptionalContentGroupID: Integer): Integer;

DLL

int DLAddOptionalContentConfigRadioGroup(int InstanceID, int OptionalContentConfigID, int FirstOptionalContentGroupID, int SecondOptionalContentGroupID);

ActiveX

Function PDFlib::AddOptionalContentConfigRadioGroup(OptionalContentConfigID As Long, FirstOptionalContentGroupID As Long, SecondOptionalContentGroupID As Long) As Long

Parameters

OptionalContentConfigIDOne-based optional-content configuration index in the selected document
FirstOptionalContentGroupIDFirst group handle; both members must belong to the selected document and must be different groups
SecondOptionalContentGroupIDSecond group handle; neither member may already belong to a radio group in the same configuration

Return values

Returns a radio-group handle on success or 0 when a member is invalid, duplicated, or already belongs to another radio group

Remarks

Each optional-content group can belong to at most one radio group in the same configuration

See also

AddOptionalContentConfigRadioGroupItem, DeleteOptionalContentConfigRadioGroup