WebExtensionBindingCollection Class |
Namespace: Aspose.Words.WebExtensions
The WebExtensionBindingCollection type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Count |
Gets the number of elements contained in the collection.
(Inherited from BaseWebExtensionCollectionT.) |
![]() ![]() | Item |
Gets or sets an item at the specified index.
(Inherited from BaseWebExtensionCollectionT.) |
Name | Description | |
---|---|---|
![]() ![]() | Add |
Adds specified item to the collection.
(Inherited from BaseWebExtensionCollectionT.) |
![]() ![]() | Clear |
Removes all elements from the collection.
(Inherited from BaseWebExtensionCollectionT.) |
![]() | Equals | (Inherited from Object.) |
![]() ![]() | GetEnumerator |
Returns an enumerator that can iterate through a collection.
(Inherited from BaseWebExtensionCollectionT.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | Remove |
Removes the item at the specified index from the collection.
(Inherited from BaseWebExtensionCollectionT.) |
![]() | ToString | (Inherited from Object.) |
Document doc = new Document(); // Create taskpane with "MyScript" add-in which will be used by the document TaskPane myScriptTaskPane = new TaskPane(); doc.WebExtensionTaskPanes.Add(myScriptTaskPane); // Define task pane location when the document opens myScriptTaskPane.DockState = TaskPaneDockState.Right; myScriptTaskPane.IsVisible = true; myScriptTaskPane.Width = 300; myScriptTaskPane.IsLocked = true; // Use this option if you have several taskpanes myScriptTaskPane.Row = 1; // Add "MyScript Math Sample" add-in which will be displayed inside task pane // Application Id from store myScriptTaskPane.WebExtension.Reference.Id = "WA104380646"; // The current version of the application used myScriptTaskPane.WebExtension.Reference.Version = "1.0.0.0"; // Type of marketplace myScriptTaskPane.WebExtension.Reference.StoreType = WebExtensionStoreType.OMEX; // Marketplace based on your locale myScriptTaskPane.WebExtension.Reference.Store = "en-us"; myScriptTaskPane.WebExtension.Properties.Add(new WebExtensionProperty("MyScript", "MyScript Math Sample")); myScriptTaskPane.WebExtension.Bindings.Add(new WebExtensionBinding("Binding1", WebExtensionBindingType.Text, "104380646")); // Use this option if you need to block web extension from any action myScriptTaskPane.WebExtension.IsFrozen = false; doc.Save(ArtifactsDir + "Document.WebExtension.docx");