Table of Contents

Class PdfLayerMembership

Namespace
iTextSharp.text.pdf
Assembly
iTextSharp.LGPLv2.Core.dll

Content typically belongs to a single optional content group, and is visible when the group is ON and invisible when it is OFF. To express more complex visibility policies, content should not declare itself to belong to an optional content group directly, but rather to an optional content membership dictionary represented by this class. @author Paulo Soares (psoares@consiste.pt)

public class PdfLayerMembership : PdfDictionary, IPdfOcg
Inheritance
PdfLayerMembership
Implements
Inherited Members

Constructors

PdfLayerMembership(PdfWriter)

Creates a new, empty, membership layer.

public PdfLayerMembership(PdfWriter writer)

Parameters

writer PdfWriter

the writer

Fields

Alloff

Visible only if all of the entries are OFF.

public static readonly PdfName Alloff

Field Value

PdfName

Allon

Visible only if all of the entries are ON.

public static readonly PdfName Allon

Field Value

PdfName

Anyoff

Visible if any of the entries are OFF.

public static readonly PdfName Anyoff

Field Value

PdfName

Anyon

Visible if any of the entries are ON.

public static readonly PdfName Anyon

Field Value

PdfName

Properties

Layers

Gets the member layers.

public ICollection<PdfLayer> Layers { get; }

Property Value

ICollection<PdfLayer>

the member layers

PdfObject

Gets the dictionary representing the membership layer. It just returns this .

public PdfObject PdfObject { get; }

Property Value

PdfObject

the dictionary representing the layer

Ref

Gets the PdfIndirectReference that represents this membership layer.

public PdfIndirectReference Ref { get; }

Property Value

PdfIndirectReference

the PdfIndirectReference that represents this layer

VisibilityPolicy

Sets the visibility policy for content belonging to this membership dictionary. Possible values are ALLON, ANYON, ANYOFF and ALLOFF. The default value is ANYON.

public PdfName VisibilityPolicy { set; }

Property Value

PdfName

Methods

AddMember(PdfLayer)

Adds a new member to the layer.

public void AddMember(PdfLayer layer)

Parameters

layer PdfLayer

the new member to the layer