WebExtensionStoreType Enumeration

Enumerates available types of a web extension store.

Namespace:  Aspose.Words.WebExtensions
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.7.0

Syntax

public enum WebExtensionStoreType

Members

  Member nameValueDescription
SPCatalog0 Specifies that the store type is SharePoint corporate catalog.
OMEX1 Specifies that the store type is Office.com.
SPApp2 Specifies that the store type is a SharePoint web application.
Exchange3 Specifies that the store type is an Exchange server.
FileSystem4 Specifies that the store type is a file system share.
Registry5 Specifies that the store type is the system registry.
ExCatalog6 Specifies that the store type is Centralized Deployment via Exchange.
Default0 Default value.

Examples

Shows how to create add-ins inside the document.
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 task panes
myScriptTaskPane.Row = 1;

// Add "MyScript Math Sample" add-in which will be displayed inside task pane
WebExtension webExtension = myScriptTaskPane.WebExtension;

// Application Id from store
webExtension.Reference.Id = "WA104380646";
// The current version of the application used
webExtension.Reference.Version = "1.0.0.0";
// Type of marketplace
webExtension.Reference.StoreType = WebExtensionStoreType.OMEX;
// Marketplace based on your locale
webExtension.Reference.Store = CultureInfo.CurrentCulture.Name;

webExtension.Properties.Add(new WebExtensionProperty("MyScript", "MyScript Math Sample"));
webExtension.Bindings.Add(new WebExtensionBinding("MyScript", WebExtensionBindingType.Text, "104380646"));

// Use this option if you need to block web extension from any action
webExtension.IsFrozen = false;

doc.Save(ArtifactsDir + "Document.WebExtension.docx");

See Also