## DocumentPropertyCollection class

الفئة الأساسية لـ[`BuiltInDocumentPropertyCollection`](../builtindocumentpropertycollection) و[`CustomDocumentPropertyCollection`](../customdocumentpropertycollection) المجموعات.

```csharp
public abstract class DocumentPropertyCollection : IEnumerable
```

## الخصائص

| اسم | وصف |
| --- | --- |
| [Count](../../aspose.cells.properties/documentpropertycollection/count) { get; } | الحصول على عدد العناصر في المجموعة. |
| [Item](../../aspose.cells.properties/documentpropertycollection/item) { get; } | إرجاع أ[`DocumentProperty`](../documentproperty)كائن بالفهرس . |
| virtual [Item](../../aspose.cells.properties/documentpropertycollection/item) { get; } | إرجاع أ[`DocumentProperty`](../documentproperty) الكائن باسم الخاصية . |

## طُرق

| اسم | وصف |
| --- | --- |
| [Clear](../../aspose.cells.properties/documentpropertycollection/clear)() | يزيل كل الخصائص من المجموعة. |
| [Contains](../../aspose.cells.properties/documentpropertycollection/contains)(string) | إرجاع صحيح في حالة وجود خاصية بالاسم المحدد في المجموعة. |
| [GetEnumerator](../../aspose.cells.properties/documentpropertycollection/getenumerator)() |  |
| [IndexOf](../../aspose.cells.properties/documentpropertycollection/indexof)(string) | الحصول على فهرس الخاصية بالاسم . |
| [Remove](../../aspose.cells.properties/documentpropertycollection/remove)(string) | يزيل خاصية بالاسم المحدد من المجموعة. |
| [RemoveAt](../../aspose.cells.properties/documentpropertycollection/removeat)(int) | يزيل خاصية في الفهرس المحدد . |

### أمثلة

```csharp

[C#]

// إنشاء كائن مصنف عن طريق استدعاء المُنشئ الفارغ الخاص به
Workbook workbook = new Workbook("book1.xls");
 
// استرداد قائمة بجميع خصائص المستند المخصصة لملف Excel
DocumentPropertyCollection customProperties = workbook.Worksheets.CustomDocumentProperties;
 
// الوصول إلى خاصية مستند مخصصة باستخدام فهرس الخصائص
DocumentProperty customProperty1 = customProperties[3];
 
// الوصول إلى خاصية مستند مخصصة باستخدام اسم الخاصية
DocumentProperty customProperty2 = customProperties["Owner"];

[VB.NET]

'إنشاء كائن مصنف عن طريق استدعاء المُنشئ الفارغ الخاص به
Dim workbook As Workbook = New Workbook("book1.xls")
 
'استرجع قائمة بجميع خصائص المستند المخصصة لملف Excel
Dim customProperties As DocumentPropertyCollection = workbook.Worksheets.CustomDocumentProperties
 
'الوصول إلى خاصية مستند مخصصة باستخدام فهرس الخصائص
Dim customProperty1 As DocumentProperty = customProperties(3)
 
'الوصول إلى خاصية مستند مخصصة باستخدام اسم الخاصية
Dim customProperty2 As DocumentProperty = customProperties("Owner")

```

### أنظر أيضا

* مساحة الاسم [Aspose.Cells.Properties](../../aspose.cells.properties)
* المجسم [Aspose.Cells](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
