LayerConfig
Overview
LayerConfig is a class in Aspose.PDF FOSS for TypeScript.
A viewing configuration (/D or a /Configs entry).
This class declares 5 methods for LayerConfig objects in TypeScript programs.
Available methods include: IsVisible, ResolveVisibility, SetLocked, SetVisible, constructor.
All public members are accessible to any TypeScript application after installing the Aspose.PDF FOSS for TypeScript package.
Properties: BaseState, Creator, Locked, Name.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
BaseState | 'ON' | 'OFF' | Read/Write | Gets the base state. |
Name | string | undefined | Read/Write | Gets the name. |
Creator | string | undefined | Read | Gets the creator. |
Locked | Layer[] | Read | Gets the locked. |
Methods
| Signature | Description |
|---|---|
constructor(doc: Document, Dict: PdfDict, oc: OptionalContent) | Calls constructor(doc, Dict, oc) on this LayerConfig instance. |
IsVisible(layer: Layer) → boolean | Calls IsVisible(layer) on this LayerConfig instance. |
ResolveVisibility(oc: PdfObject | undefined) → boolean | Resolve the visibility of any /OC value under this config: an OCG (its ON/OFF/BaseState state), or an OCMD (via /VE when present, else its /P policy over /OCGs). |
SetVisible(layer: Layer, v: boolean) | Calls SetVisible(layer, v) on this LayerConfig instance. |
SetLocked(layer: Layer, v: boolean) | Calls SetLocked(layer, v) on this LayerConfig instance. |