Class SmartTagCollection
Contents
[
Hide
]SmartTagCollection class
Represents all smart tags in the cell.
public class SmartTagCollection : CollectionBase<SmartTag>
Properties
| Name | Description | 
|---|---|
| Capacity { get; set; } | |
| Column { get; } | Gets the column of the cell smart tags. | 
| Count { get; } | |
| Item { get; } | Gets a SmartTag object at the specific index | 
| Item { get; set; } | |
| Row { get; } | Gets the row of the cell smart tags. | 
Methods
| Name | Description | 
|---|---|
| Add(string, string) | Adds a smart tag. | 
| BinarySearch(SmartTag) | |
| BinarySearch(SmartTag, IComparer<SmartTag>) | |
| BinarySearch(int, int, SmartTag, IComparer<SmartTag>) | |
| Clear() | |
| Contains(SmartTag) | |
| CopyTo(SmartTag[]) | |
| CopyTo(SmartTag[], int) | |
| CopyTo(int, SmartTag[], int, int) | |
| Exists(Predicate<SmartTag>) | |
| Find(Predicate<SmartTag>) | |
| FindAll(Predicate<SmartTag>) | |
| FindIndex(Predicate<SmartTag>) | |
| FindIndex(int, Predicate<SmartTag>) | |
| FindIndex(int, int, Predicate<SmartTag>) | |
| FindLast(Predicate<SmartTag>) | |
| FindLastIndex(Predicate<SmartTag>) | |
| FindLastIndex(int, Predicate<SmartTag>) | |
| FindLastIndex(int, int, Predicate<SmartTag>) | |
| GetEnumerator() | |
| IndexOf(SmartTag) | |
| IndexOf(SmartTag, int) | |
| IndexOf(SmartTag, int, int) | |
| LastIndexOf(SmartTag) | |
| LastIndexOf(SmartTag, int) | |
| LastIndexOf(SmartTag, int, int) | |
| RemoveAt(int) | 
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Markup;
namespace AsposeCellsExamples
{
    public class MarkupClassSmartTagCollectionDemo
    {
        public static void Run()
        {
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];
            SmartTagSetting smartTagSetting = worksheet.SmartTagSetting;
            smartTagSetting.Add(0, 0); // Add smart tag to cell A1
            SmartTagCollection smartTagCollection = smartTagSetting[0, 0];
            smartTagCollection.Add("urn:schemas-microsoft-com:office:smarttags", "date");
            Console.WriteLine("Smart Tags Count: " + smartTagSetting.Count);
            workbook.Save("SmartTagCollectionDemo.xlsx");
        }
    }
}
See Also
- class CollectionBase<T>
 - class SmartTag
 - namespace Aspose.Cells.Markup
 - assembly Aspose.Cells