Class WebExtensionCollection
Contents
[
Hide
]WebExtensionCollection class
Represents the list of web extension.
public class WebExtensionCollection : CollectionBase<WebExtension>
Properties
Name | Description |
---|---|
Capacity { get; set; } | |
Count { get; } | |
Item { get; } | Gets web extension by the specific index. |
Item { get; set; } |
Methods
Name | Description |
---|---|
Add() | Adds a web extension. |
AddWebVideoPlayer(string, bool, int, int) | Add a web video player into exel. |
BinarySearch(WebExtension) | |
BinarySearch(WebExtension, IComparer<WebExtension>) | |
BinarySearch(int, int, WebExtension, IComparer<WebExtension>) | |
Clear() | |
Contains(WebExtension) | |
CopyTo(WebExtension[]) | |
CopyTo(WebExtension[], int) | |
CopyTo(int, WebExtension[], int, int) | |
Exists(Predicate<WebExtension>) | |
Find(Predicate<WebExtension>) | |
FindAll(Predicate<WebExtension>) | |
FindIndex(Predicate<WebExtension>) | |
FindIndex(int, Predicate<WebExtension>) | |
FindIndex(int, int, Predicate<WebExtension>) | |
FindLast(Predicate<WebExtension>) | |
FindLastIndex(Predicate<WebExtension>) | |
FindLastIndex(int, Predicate<WebExtension>) | |
FindLastIndex(int, int, Predicate<WebExtension>) | |
GetEnumerator() | |
IndexOf(WebExtension) | |
IndexOf(WebExtension, int) | |
IndexOf(WebExtension, int, int) | |
LastIndexOf(WebExtension) | |
LastIndexOf(WebExtension, int) | |
LastIndexOf(WebExtension, int, int) | |
RemoveAt(int) | Remove web extension by the index. (2 methods) |
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.WebExtensions;
using Aspose.Cells.Drawing;
namespace AsposeCellsExamples
{
public class WebExtensionsClassWebExtensionCollectionDemo
{
public static void Run()
{
// Create a new workbook
Workbook workbook = new Workbook();
// Access the WebExtensionCollection
WebExtensionCollection webExtensions = workbook.Worksheets.WebExtensions;
// Add a new web extension
int index = webExtensions.Add();
WebExtension webExt = webExtensions[index];
// Set web extension properties
webExt.Reference.Id = "wa104104476";
webExt.Reference.Version = "1.3.0.0";
webExt.Reference.StoreName = "en-US";
webExt.Reference.StoreType = WebExtensionStoreType.OMEX;
// Add custom properties
webExt.Properties.Add("sku", "peoplebar-giant");
webExt.Properties.Add("theme", "giant-redwhiteblack");
webExt.Properties.Add("shape", "muscle-people");
webExt.Properties.Add("layout-element-title", "NUMBERS ABOUT THE APP");
// Create a shape to host the web extension
ShapeCollection shapes = workbook.Worksheets[0].Shapes;
shapes.AddShape(MsoDrawingType.WebExtension, 0, 0, 0, 0, 500, 500);
WebExtensionShape wShape = (WebExtensionShape)shapes[0];
wShape.WebExtension = webExt;
// Save the workbook
workbook.Save("web_extension_demo.xlsx");
}
}
}
See Also
- class CollectionBase<T>
- class WebExtension
- namespace Aspose.Cells.WebExtensions
- assembly Aspose.Cells