AddOptionalContentConfigRadioGroup

可选内容、单选组、查看器交互

描述

创建包含两个不同可选内容组的互斥组

语法

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

参数

OptionalContentConfigID所选文档中从 1 开始的可选内容配置索引
FirstOptionalContentGroupID第一个组句柄;两个成员都必须属于所选文档,且必须是不同的组
SecondOptionalContentGroupID第二个组句柄;两个成员都不得已属于同一配置中的单选组

返回值

成功时返回单选组句柄;成员无效、重复或已属于另一单选组时返回 0

备注

在同一配置中,每个可选内容组最多只能属于一个单选组

另请参阅

AddOptionalContentConfigRadioGroupItem、DeleteOptionalContentConfigRadioGroup