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).
Namespace: pdftron.PDF.OCG
public sealed class OCMD
The OCMD type exposes the following members.
Name | Description | |
---|---|---|
OCMD | Creates a new optional-content group (OCG) object from an existing
SDF/Cos object.
|
Name | Description | |
---|---|---|
Create | Creates a new optional-content membership dictionary (OCMD) object in the
given document for the given groups and visibility policy.
| |
Equals | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetOCGs | Gets the optional-content groups listed under 'OCGs' entry in the object
dictionary.
| |
GetSDFObj | Gets the SDFObj.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetVisibilityExpression | Gets the visibility expression.
| |
GetVisibilityPolicy | 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.
| |
IsCurrentlyVisible | Checks if is currently visible.
| |
IsValid | Checks if is valid.
| |
SetVisibilityPolicy | 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.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |