ContentTypePropertyCollection
محتويات
[
يخفي
]ContentTypePropertyCollection class
مجموعة منContentTypeProperty كائنات تمثل معلومات إضافية.
public class ContentTypePropertyCollection : CollectionBase<ContentTypeProperty>
الخصائص
| اسم | وصف |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | يحصل على خاصية نوع المحتوى بالفهرس المحدد. (2 indexers) |
| Item { get; set; } |
طُرق
| اسم | وصف |
|---|---|
| Add(string, string) | يضيف معلومات خاصية نوع المحتوى. |
| Add(string, string, string) | يضيف معلومات خاصية نوع المحتوى. |
| 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) |
أمثلة
[C#]
// إنشاء كائن مصنف
Workbook workbook = new Workbook();
// إضافة خاصية جديدة.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text");
// احفظ ملف Excel
workbook.Save("book1.xlsm");
[Visual Basic]
'إنشاء كائن مصنف
Dim workbook As Workbook = New Workbook()
'أضف خاصية جديدة.
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text")
'احفظ ملف Excel
workbook.Save("book1.xlsm")
أنظر أيضا
- class CollectionBase<T>
- class ContentTypeProperty
- مساحة الاسم Aspose.Cells.Properties
- المجسم Aspose.Cells