Skip to content

PDFOptionalContentGroup

Namespace: O2S.Components.PDF4NET.Graphics.OptionalContent

Represents an optional content group.

public class PDFOptionalContentGroup : PDFOptionalContentBase

Inheritance ObjectPDFOptionalContentBasePDFOptionalContentGroup

Remarks

An optional content group represents a collection of graphics that can be made visible or invisible dynamically by users of viewer applications.
The graphics belonging to an optional content group can be located anywhere in the document, on one or more pages and they need not be consecutive in drawing order

Constructors

PDFOptionalContentGroup()

Initializes a new PDFOptionalContentGroup object.

public PDFOptionalContentGroup()

Properties

DefaultState

Gets or sets the default state of the optional content group.

public PDFOptionalContentGroupDefaultState DefaultState { get; set; }

Property Value

PDFOptionalContentGroupDefaultState
On if the optional content group should be visible when the document is displayed, Off otherwise.


ExportState

Gets or sets the export state of this optional content group.

public PDFOptionalContentGroupExportState ExportState { get; set; }

Property Value

PDFOptionalContentGroupExportState
The export state of the optional content group.


Locked

Gets or sets a value indicating whether the layer is locked when the PDF file is displayed in the viewer application.

public bool Locked { get; set; }

Property Value

Boolean
True if the layer is locked, false otherwise. Default is locked.


Name

Gets or sets the name of the optional content group.

public string Name { get; set; }

Property Value

String


PrintState

Gets or sets the print state of this optional content group.

public PDFOptionalContentGroupPrintState PrintState { get; set; }

Property Value

PDFOptionalContentGroupPrintState
The print state of the optional content group.


VisibilityState

Gets or sets the visibility state of this optional content group.

public PDFOptionalContentGroupVisibilityState VisibilityState { get; set; }

Property Value

PDFOptionalContentGroupVisibilityState
The visibility state of the optional content group.