Click or drag to resize
Pdftools logo

OptionalContentMembership Class

Inheritance Hierarchy
SystemObject
  PdfTools.Toolbox.InternalNativeBase
    PdfTools.Toolbox.InternalNativeObject
      PdfTools.Toolbox.Pdf.ContentOptionalContentMembership

Namespace: PdfTools.Toolbox.Pdf.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.2.0+708f7116d933787a0712d56133e4c2c9bf21e5e3
Syntax
C#
public class OptionalContentMembership : NativeObject

The OptionalContentMembership type exposes the following members.

Properties
 NameDescription
Public propertyExpression

The content element visibility function.

Optional content membership expression defines the visibility as a boolean function of OCG indices in C syntax. The OCG index represents the position of the element in the OCG list which can be retreived by using OptionalContentGroups. Example: "1 || 2" means that the content element is visible if either OCG 1 or OCG 2 is ON.

Alternatively, the evaluated expression can be fetched via IsVisible.

Public propertyIsVisible

The element visibility.

if the element is visible in the default configuration or OptionalContentGroups is empty. , otherwise.
Top
Methods
 NameDescription
Public methodDependsOn Checks if the content element depends on a given OCG.
Public methodEquals
(Inherited from NativeObject)
Public methodGetHashCode
(Inherited from NativeObject)
Top
See Also