ContentTypePropertyCollection
Contenu
[
Cacher
]ContentTypePropertyCollection class
Une collection deContentTypeProperty objets qui représentent des informations supplémentaires.
public class ContentTypePropertyCollection : CollectionBase<ContentTypeProperty>
Propriétés
| Nom | La description |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | Obtient la propriété de type de contenu par l’index spécifique. (2 indexers) |
| Item { get; set; } |
Méthodes
| Nom | La description |
|---|---|
| Add(string, string) | Ajoute des informations sur la propriété du type de contenu. |
| Add(string, string, string) | Ajoute des informations sur la propriété du type de contenu. |
| 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) |
Exemples
[C#]
//Instanciation d'un objet Workbook
Workbook workbook = new Workbook();
//Ajouter une nouvelle propriété.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text");
// Enregistrer le fichier Excel
workbook.Save("book1.xlsm");
[Visual Basic]
'Instanciation d'un objet Workbook
Dim workbook As Workbook = New Workbook()
'Ajouter une nouvelle propriété.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text")
'Enregistrez le fichier Excel
workbook.Save("book1.xlsm")
Voir également
- class CollectionBase<T>
- class ContentTypeProperty
- espace de noms Aspose.Cells.Properties
- Assemblée Aspose.Cells