Skip to content

# PDFJavaScriptBlockCollection

Namespace: O2S.Components.PDF4NET

Defines a collection of JavaScript source code blocks.

    public class PDFJavaScriptBlockCollection : System.Collections.ObjectModel.Collection`1[[O2S.Components.PDF4NET.PDFJavaScriptBlock, O2S.Components.PDF4NET.NetStandard, Version=16.3.0.1, Culture=neutral, PublicKeyToken=80d03dd9e5b85317]]

Inheritance Object → Collection<PDFJavaScriptBlock> → PDFJavaScriptBlockCollection
Implements

## Properties

### Count

    public int Count { get; }

Property Value

Int32

### Item

    public PDFJavaScriptBlock Item { get; }

Property Value

PDFJavaScriptBlock

### Item

    public PDFJavaScriptBlock Item { get; set; }

Property Value

PDFJavaScriptBlock

## Methods

### Add(String)

Adds a new JavaScript action to the collection.

    public void Add(string javaScript)

Parameters

`javaScript` String
The JavaScript code.

Remarks

This method adds a JavaScript code fragment in the collection.