Class PdfJavaScriptActionMap
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Represents a collection of named document-level JavaScript actions exposed as PdfJavaScriptActionEntry instances.
public sealed class PdfJavaScriptActionMap : IEnumerable<PdfJavaScriptActionEntry>, IEnumerable
- Inheritance
-
PdfJavaScriptActionMap
- Implements
- Inherited Members
Remarks
Each PdfJavaScriptActionEntry associates a script name with a PdfJavaScriptAction.
Use this collection to enumerate, access, and manage JavaScript stored at the document level. The collection is returned by the SharedScripts property.
See the PDF scripting section to learn how to work with document-level JavaScript.
For articles, guides, and code samples, see the Docotic.Pdf Library Documentation.
Properties
- this[string]
Gets the JavaScript action associated with the specified name.
Methods
- Add(string, PdfJavaScriptAction)
Adds a named JavaScript action to the collection.
- Add(string, string)
Creates a JavaScript action from the specified script contents and adds it to the collection.
- Clear()
Removes all JavaScript actions from the collection.
- Contains(string)
Determines whether the collection contains an action with the specified name.
- GetEnumerator()
Returns an enumerator that iterates through the collection of JavaScript action entries.
- Remove(string)
Removes the JavaScript action with the specified name from the collection.