ContentTypePropertyCollection
Inhalt
[
Ausblenden
]ContentTypePropertyCollection class
Eine Sammlung vonContentTypeProperty Objekte, die zusätzliche Informationen darstellen.
public class ContentTypePropertyCollection : CollectionBase<ContentTypeProperty>
Eigenschaften
| Name | Beschreibung |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | Ruft die Eigenschaft des Inhaltstyps nach dem spezifischen Index ab. (2 indexers) |
| Item { get; set; } |
Methoden
| Name | Beschreibung |
|---|---|
| Add(string, string) | Fügt Inhaltstyp-Eigenschaftsinformationen hinzu. |
| Add(string, string, string) | Fügt Inhaltstyp-Eigenschaftsinformationen hinzu. |
| 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) |
Beispiele
[C#]
//Instanziieren eines Workbook-Objekts
Workbook workbook = new Workbook();
//Eine neue Eigenschaft hinzufügen.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text");
//Excel-Datei speichern
workbook.Save("book1.xlsm");
[Visual Basic]
'Instanziieren eines Workbook-Objekts
Dim workbook As Workbook = New Workbook()
'Fügen Sie eine neue Eigenschaft hinzu.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text")
'Speichern Sie die Excel-Datei
workbook.Save("book1.xlsm")
Siehe auch
- class CollectionBase<T>
- class ContentTypeProperty
- namensraum Aspose.Cells.Properties
- Montage Aspose.Cells