Click or drag to resize

OCMD Class

The OCMD object represents an Optional Content Membership Dictionary (OCMD) that allows the visibility of optional content to depend on the states in a set of optional-content groups (OCG::Group). The object directly corresponds to the OCMD dictionary (Section 4.10.1 'Optional Content Groups' in PDF Reference).

An OCMD collects a set of OCGs. It sets a visibility policy, so that content in the member groups is visible only when all groups are ON or OFF, or when any of the groups is ON or OFF. This makes it possible to set up complex dependencies among groups. For example, an object can be visible only if some other conditions are met (such as if another layer is visible).

Inheritance Hierarchy
SystemObject
  pdftron.PDF.OCGOCMD

Namespace:  pdftron.PDF.OCG
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class OCMD

The OCMD type exposes the following members.

Constructors
  NameDescription
Public methodOCMD
Creates a new optional-content group (OCG) object from an existing SDF/Cos object.
Top
Methods
  NameDescription
Public methodStatic memberCreate
Creates a new optional-content membership dictionary (OCMD) object in the given document for the given groups and visibility policy.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetOCGs
Gets the optional-content groups listed under 'OCGs' entry in the object dictionary.
Public methodGetSDFObj
Gets the SDFObj.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVisibilityExpression
Gets the visibility expression.
Public methodGetVisibilityPolicy
Gets the optional-content membership dictionary's visibility policy, which determines the visibility of content with respect to the ON-OFF state of OCGs listed in the dictionary.
Public methodIsCurrentlyVisible
Checks if is currently visible.
Public methodIsValid
Checks if is valid.
Public methodSetVisibilityPolicy
Sets the optional-content membership dictionary's visibility policy, which determines the visibility of content with respect to the ON-OFF state of OCGs listed in the dictionary.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also