ContentTypePropertyCollection
Contenuti
[
Nascondere
]ContentTypePropertyCollection class
Una raccolta diContentTypeProperty oggetti che rappresentano informazioni aggiuntive.
public class ContentTypePropertyCollection : CollectionBase<ContentTypeProperty>
Proprietà
| Nome | Descrizione |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | Ottiene la proprietà del tipo di contenuto in base all’indice specifico. (2 indexers) |
| Item { get; set; } |
Metodi
| Nome | Descrizione |
|---|---|
| Add(string, string) | Aggiunge informazioni sulla proprietà del tipo di contenuto. |
| Add(string, string, string) | Aggiunge informazioni sulla proprietà del tipo di contenuto. |
| 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) |
Esempi
[C#]
//Creazione di un'istanza di un oggetto cartella di lavoro
Workbook workbook = new Workbook();
//Aggiungi una nuova proprietà.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text");
//Salva il file Excel
workbook.Save("book1.xlsm");
[Visual Basic]
'Creazione di un'istanza di un oggetto Workbook
Dim workbook As Workbook = New Workbook()
'Aggiungi una nuova proprietà.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text")
'Salva il file Excel
workbook.Save("book1.xlsm")
Guarda anche
- class CollectionBase<T>
- class ContentTypeProperty
- spazio dei nomi Aspose.Cells.Properties
- assemblea Aspose.Cells