OptionalContentProperties

OptionalContentProperties

Overview

OptionalContentProperties is a class in Aspose.PDF FOSS for .NET.

Collection of Optional Content Groups (layers) in a document.

This class provides 3 methods for working with OptionalContentProperties objects in .NET programs. Available methods include: FindByName, GetDisplayOrder, SetVisibility. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Count, Groups, Names.

Properties

NameTypeAccessDescription
CountintReadNumber of layers.
NamesIReadOnlyList<string>ReadAll layer names.
GroupsIEnumerable<OptionalContentGroup>ReadAll groups as an enumerable.

Methods

SignatureDescription
FindByName(name: string)Find a layer by name.
GetDisplayOrder()Gets the presentation order of layers as specified in /D/Order.
SetVisibility(name: string, visible: bool)Set the visibility of a layer by name.

See Also