## DocumentPropertyCollection class

için temel sınıf[`BuiltInDocumentPropertyCollection`](../builtindocumentpropertycollection) ve[`CustomDocumentPropertyCollection`](../customdocumentpropertycollection) koleksiyonlar.

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

## Özellikleri

| İsim | Tanım |
| --- | --- |
| [Count](../../aspose.cells.properties/documentpropertycollection/count) { get; } | Koleksiyondaki öğe sayısını alır. |
| [Item](../../aspose.cells.properties/documentpropertycollection/item) { get; } | Bir döndürür[`DocumentProperty`](../documentproperty)dizine göre nesne. |
| virtual [Item](../../aspose.cells.properties/documentpropertycollection/item) { get; } | Bir döndürür[`DocumentProperty`](../documentproperty) özelliğin adına göre nesne. |

## yöntemler

| İsim | Tanım |
| --- | --- |
| [Clear](../../aspose.cells.properties/documentpropertycollection/clear)() | Koleksiyondaki tüm özellikleri kaldırır. |
| [Contains](../../aspose.cells.properties/documentpropertycollection/contains)(string) | Koleksiyonda belirtilen ada sahip bir özellik varsa true değerini döndürür. |
| [GetEnumerator](../../aspose.cells.properties/documentpropertycollection/getenumerator)() |  |
| [IndexOf](../../aspose.cells.properties/documentpropertycollection/indexof)(string) | Ada göre bir özelliğin dizinini alır. |
| [Remove](../../aspose.cells.properties/documentpropertycollection/remove)(string) | Belirtilen ada sahip bir özelliği koleksiyondan kaldırır. |
| [RemoveAt](../../aspose.cells.properties/documentpropertycollection/removeat)(int) | Belirtilen dizindeki bir özelliği kaldırır. |

### Örnekler

```csharp

[C#]

//Boş yapıcısını çağırarak bir Çalışma Kitabı nesnesini örnekleyin
Workbook workbook = new Workbook("book1.xls");
 
//Excel dosyasının tüm özel belge özelliklerinin bir listesini alın
DocumentPropertyCollection customProperties = workbook.Worksheets.CustomDocumentProperties;
 
//Özellik dizinini kullanarak özel bir belge özelliğine erişme
DocumentProperty customProperty1 = customProperties[3];
 
//Özellik adını kullanarak özel bir belge özelliğine erişme
DocumentProperty customProperty2 = customProperties["Owner"];

[VB.NET]

'Boş yapıcısını çağırarak bir Çalışma Kitabı nesnesinin örneğini oluşturun
Dim workbook As Workbook = New Workbook("book1.xls")
 
'Excel dosyasının tüm özel belge özelliklerinin bir listesini alın
Dim customProperties As DocumentPropertyCollection = workbook.Worksheets.CustomDocumentProperties
 
'Özellik dizinini kullanarak özel bir belge özelliğine erişme
Dim customProperty1 As DocumentProperty = customProperties(3)
 
'Özellik adını kullanarak özel bir belge özelliğine erişme
Dim customProperty2 As DocumentProperty = customProperties("Owner")

```

### Ayrıca bakınız

* ad alanı [Aspose.Cells.Properties](../../aspose.cells.properties)
* toplantı [Aspose.Cells](../../)

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