Class ContentTypePropertyCollection
Namespace: Aspose.Cells.Properties
Assembly: Aspose.Cells.dll (25.2.0)
A collection of Aspose.Cells.Properties.ContentTypeProperty objects that represent additional information.
public class ContentTypePropertyCollection : CollectionBase<contenttypeproperty>, IList<contenttypeproperty>, ICollection<contenttypeproperty>, IEnumerable<contenttypeproperty>, ICollection, IEnumerable
Inheritance
object ← CollectionBase<contenttypeproperty> ← ContentTypePropertyCollection
Implements
IList<contenttypeproperty>, ICollection<contenttypeproperty>, IEnumerable<contenttypeproperty>, ICollection, IEnumerable
Inherited Members
CollectionBase<contenttypeproperty>.BinarySearch(ContentTypeProperty), CollectionBase<contenttypeproperty>.BinarySearch(ContentTypeProperty, IComparer<contenttypeproperty>), CollectionBase<contenttypeproperty>.BinarySearch(int, int, ContentTypeProperty, IComparer<contenttypeproperty>), CollectionBase<contenttypeproperty>.Contains(ContentTypeProperty), CollectionBase<contenttypeproperty>.CopyTo(ContentTypeProperty[]), CollectionBase<contenttypeproperty>.CopyTo(ContentTypeProperty[], int), CollectionBase<contenttypeproperty>.CopyTo(int, ContentTypeProperty[], int, int), CollectionBase<contenttypeproperty>.Exists(Predicate<contenttypeproperty>), CollectionBase<contenttypeproperty>.Find(Predicate<contenttypeproperty>), CollectionBase<contenttypeproperty>.FindAll(Predicate<contenttypeproperty>), CollectionBase<contenttypeproperty>.FindIndex(Predicate<contenttypeproperty>), CollectionBase<contenttypeproperty>.FindIndex(int, Predicate<contenttypeproperty>), CollectionBase<contenttypeproperty>.FindIndex(int, int, Predicate<contenttypeproperty>), CollectionBase<contenttypeproperty>.FindLast(Predicate<contenttypeproperty>), CollectionBase<contenttypeproperty>.FindLastIndex(Predicate<contenttypeproperty>), CollectionBase<contenttypeproperty>.FindLastIndex(int, Predicate<contenttypeproperty>), CollectionBase<contenttypeproperty>.FindLastIndex(int, int, Predicate<contenttypeproperty>), CollectionBase<contenttypeproperty>.IndexOf(ContentTypeProperty), CollectionBase<contenttypeproperty>.IndexOf(ContentTypeProperty, int), CollectionBase<contenttypeproperty>.IndexOf(ContentTypeProperty, int, int), CollectionBase<contenttypeproperty>.LastIndexOf(ContentTypeProperty), CollectionBase<contenttypeproperty>.LastIndexOf(ContentTypeProperty, int), CollectionBase<contenttypeproperty>.LastIndexOf(ContentTypeProperty, int, int), CollectionBase<contenttypeproperty>.GetEnumerator(), CollectionBase<contenttypeproperty>.Clear(), CollectionBase<contenttypeproperty>.RemoveAt(int), CollectionBase<contenttypeproperty>.OnClearComplete(), CollectionBase<contenttypeproperty>.OnClear(), CollectionBase<contenttypeproperty>.Capacity, CollectionBase<contenttypeproperty>.Count, CollectionBase<contenttypeproperty>.InnerList, CollectionBase<contenttypeproperty>.this[int], object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
//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");
'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")
Properties
this[int]
Gets the content type property by the specific index.
public ContentTypeProperty this[int index] { get; }
Property Value
this[string]
Gets the content type property by the property name.
public ContentTypeProperty this[string name] { get; }
Property Value
Methods
Add(string, string)
Adds content type property information.
public int Add(string name, string value)
Parameters
name
string
The name of the content type property.
value
string
The value of the content type property.
Returns
Add(string, string, string)
Adds content type property information.
public int Add(string name, string value, string type)
Parameters
name
string
The name of the content type property.
value
string
The value of the content type property.
type
string
The type of the content type property.
Returns
int </contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty></contenttypeproperty>