SetOptionalContentGroupVisibleByName
Content Streams and Optional Content Groups
Description
Reference page for SetOptionalContentGroupVisibleByName. The function belongs to Content Streams and Optional Content Groups and keeps all identifiers exactly as shown
Syntax
Delphi
Function TPDFlib.SetOptionalContentGroupVisibleByName(Const GroupName: WideString; Visible: Integer): Integer;
Parameters
| GroupName | Optional-content group display name to update |
|---|---|
| Visible | 1 to include the group in the initial ON view state, 0 to place it in the initial OFF view state |
Return values
| 0 | The group was not found or the state could not be changed |
|---|---|
| 1 | The group view state was changed |
Remarks
Use FindOptionalContentGroupByName when the caller needs to cache the handle for repeated updates
See also
FindOptionalContentGroupByName, SetOptionalContentGroupVisible, SetOptionalContentGroupPrintableByName