Class ContentTypePropertyCollection
Contents
[
Hide
]ContentTypePropertyCollection class
A collection of ContentTypeProperty
objects that represent additional information.
public class ContentTypePropertyCollection : CollectionBase<ContentTypeProperty>
Properties
Name | Description |
---|---|
Capacity { get; set; } | |
Count { get; } | |
Item { get; } | Gets the content type property by the specific index. (2 indexers) |
Item { get; set; } |
Methods
Name | Description |
---|---|
Add(string, string) | Adds content type property information. |
Add(string, string, string) | Adds content type property information. |
BinarySearch(ContentTypeProperty) | |
BinarySearch(ContentTypeProperty, IComparer<ContentTypeProperty>) | |
BinarySearch(int, int, ContentTypeProperty, IComparer<ContentTypeProperty>) | |
Clear() | |
Contains(ContentTypeProperty) | |
CopyTo(ContentTypeProperty[]) | |
CopyTo(ContentTypeProperty[], int) | |
CopyTo(int, ContentTypeProperty[], int, int) | |
Exists(Predicate<ContentTypeProperty>) | |
Find(Predicate<ContentTypeProperty>) | |
FindAll(Predicate<ContentTypeProperty>) | |
FindIndex(Predicate<ContentTypeProperty>) | |
FindIndex(int, Predicate<ContentTypeProperty>) | |
FindIndex(int, int, Predicate<ContentTypeProperty>) | |
FindLast(Predicate<ContentTypeProperty>) | |
FindLastIndex(Predicate<ContentTypeProperty>) | |
FindLastIndex(int, Predicate<ContentTypeProperty>) | |
FindLastIndex(int, int, Predicate<ContentTypeProperty>) | |
GetEnumerator() | |
IndexOf(ContentTypeProperty) | |
IndexOf(ContentTypeProperty, int) | |
IndexOf(ContentTypeProperty, int, int) | |
LastIndexOf(ContentTypeProperty) | |
LastIndexOf(ContentTypeProperty, int) | |
LastIndexOf(ContentTypeProperty, int, int) | |
RemoveAt(int) |
Examples
[C#]
//Instantiating a Workbook object
Workbook workbook = new Workbook();
//Add a new property.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text");
//Save the Excel file
workbook.Save("book1.xlsm");
[Visual Basic]
'Instantiating a Workbook object
Dim workbook As Workbook = New Workbook()
'Add a new property.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text")
'Save the Excel file
workbook.Save("book1.xlsm")
See Also
- class CollectionBase<T>
- class ContentTypeProperty
- namespace Aspose.Cells.Properties
- assembly Aspose.Cells