Aracılığıyla paylaş


WorkbookBase.CustomDocumentProperties Özellik

Tanım

Çalışma kitabı için tüm özel belge özelliklerini temsil eden bir Microsoft.Office.Core.DocumentProperties koleksiyonunu alır.

public:
 property System::Object ^ CustomDocumentProperties { System::Object ^ get(); };
public object CustomDocumentProperties { get; }
member this.CustomDocumentProperties : obj
Public ReadOnly Property CustomDocumentProperties As Object

Özellik Değeri

Çalışma kitabı için tüm özel belge özelliklerini temsil eden bir Microsoft.Office.Core.DocumentProperties koleksiyonu.

Örnekler

Aşağıdaki kod örneği, çalışma sayfasının Sheet1A sütununda geçerli çalışma kitabının tüm özel belge özelliklerini görüntülemek için özelliğini kullanırCustomDocumentProperties.

Bu örnek, belge düzeyinde özelleştirme içindir

private void DisplayCustomDocumentProperties()
{
    Office.DocumentProperties properties =
        (Office.DocumentProperties)this.CustomDocumentProperties;

    for (int i = 1; i <= properties.Count; i++)
    {
        Globals.Sheet1.Range["A" + i].Value2 =
            properties[i].Name;
    }
}
Private Sub DisplayCustomDocumentProperties()
    Dim properties As Office.DocumentProperties = _
        CType(Me.CustomDocumentProperties, Office.DocumentProperties)

    Dim i As Integer
    For i = 1 To properties.Count
        Globals.Sheet1.Range("A" & i).Value2 = properties(i).Name
    Next i
End Sub

Açıklamalar

Bu özellik, özel belge özellikleri koleksiyonunun tamamını döndürür. Özelliğin Microsoft.Office.Core.DocumentProperties.Item(System.Object) adını veya koleksiyon dizinini (sayı olarak) belirterek koleksiyonun tek bir üyesini (nesne Microsoft.Office.Core.DocumentProperties ) döndürmek için özelliğini kullanın.

BuiltinDocumentProperties Yerleşik belge özellikleri koleksiyonunu döndürmek için özelliğini kullanın.

Şunlara uygulanır