ContentTypePropertyCollection
Contenido
[
Ocultar
]ContentTypePropertyCollection class
Una colección deContentTypeProperty objetos que representan información adicional.
public class ContentTypePropertyCollection : CollectionBase<ContentTypeProperty>
Propiedades
| Nombre | Descripción |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | Obtiene la propiedad de tipo de contenido por el índice específico. (2 indexers) |
| Item { get; set; } |
Métodos
| Nombre | Descripción |
|---|---|
| Add(string, string) | Agrega información de propiedad de tipo de contenido. |
| Add(string, string, string) | Agrega información de propiedad de tipo de contenido. |
| 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) |
Ejemplos
[C#]
// Instanciando un objeto Workbook
Workbook workbook = new Workbook();
//Añadir una nueva propiedad.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text");
//Guardar el archivo Excel
workbook.Save("book1.xlsm");
[Visual Basic]
'Crear una instancia de un objeto Workbook
Dim workbook As Workbook = New Workbook()
'Añadir una nueva propiedad.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text")
'Guarde el archivo de Excel
workbook.Save("book1.xlsm")
Ver también
- class CollectionBase<T>
- class ContentTypeProperty
- espacio de nombres Aspose.Cells.Properties
- asamblea Aspose.Cells