Class SmartTagPropertyCollection
SmartTagPropertyCollection class
Represents all properties of cell smart tag.
public class SmartTagPropertyCollection : CollectionBase<SmartTagProperty>
Constructors
Properties
Methods
Name | Description |
---|
Add(string, string) | Adds a property of cell’s smart tag. |
BinarySearch(SmartTagProperty) | |
BinarySearch(SmartTagProperty, IComparer<SmartTagProperty>) | |
BinarySearch(int, int, SmartTagProperty, IComparer<SmartTagProperty>) | |
Clear() | |
Contains(SmartTagProperty) | |
CopyTo(SmartTagProperty[]) | |
CopyTo(SmartTagProperty[], int) | |
CopyTo(int, SmartTagProperty[], int, int) | |
Exists(Predicate<SmartTagProperty>) | |
Find(Predicate<SmartTagProperty>) | |
FindAll(Predicate<SmartTagProperty>) | |
FindIndex(Predicate<SmartTagProperty>) | |
FindIndex(int, Predicate<SmartTagProperty>) | |
FindIndex(int, int, Predicate<SmartTagProperty>) | |
FindLast(Predicate<SmartTagProperty>) | |
FindLastIndex(Predicate<SmartTagProperty>) | |
FindLastIndex(int, Predicate<SmartTagProperty>) | |
FindLastIndex(int, int, Predicate<SmartTagProperty>) | |
GetEnumerator() | |
IndexOf(SmartTagProperty) | |
IndexOf(SmartTagProperty, int) | |
IndexOf(SmartTagProperty, int, int) | |
LastIndexOf(SmartTagProperty) | |
LastIndexOf(SmartTagProperty, int) | |
LastIndexOf(SmartTagProperty, int, int) | |
RemoveAt(int) | |
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Markup;
namespace AsposeCellsExamples
{
public class MarkupClassSmartTagPropertyCollectionDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];
SmartTagSetting smartTagSetting = sheet.SmartTagSetting;
int smartTagIndex = smartTagSetting.Add(0, 0);
SmartTagCollection smartTags = smartTagSetting[smartTagIndex];
smartTags.Add("http://docs.aspose.com", "docs");
SmartTag smartTag = smartTags[0];
SmartTagPropertyCollection properties = smartTag.Properties;
properties.Add("Author", "Aspose");
properties.Add("Version", "1.0");
workbook.Save("SmartTagPropertyCollectionDemo.xlsx");
Console.WriteLine("SmartTagPropertyCollectionDemo.xlsx created successfully.");
}
}
}
See Also