Aracılığıyla paylaş


DocumentBase.CustomDocumentProperties Özellik

Alır bir DocumentProperties belge için özel belge özelliklerini temsil eden bir koleksiyon.

Ad alanı:  Microsoft.Office.Tools.Word
Derleme:  Microsoft.Office.Tools.Word.v4.0.Utilities (Microsoft.Office.Tools.Word.v4.0.Utilities.dll içinde)

Sözdizimi

'Bildirim
Public ReadOnly Property CustomDocumentProperties As Object
public Object CustomDocumentProperties { get; }

Özellik Değeri

Tür: System.Object
A DocumentProperties belge için özel belge özelliklerini temsil eden bir koleksiyon.

Notlar

Kullanım BuiltInDocumentProperties yerleşik belge özellikleri topluluğu döndürmek için özelliği.

Türünün özelliklerini msoPropertyTypeString uzunluğu 255 karakteri aşamaz.

Örnekler

Aşağıdaki kod örneğinde, proje adı adlı belge için özel belge özelliğini ekler ve teknik incelemeler değerini ayarlar.Bu örneği kullanmak için çalıştırın ThisDocument bir belge düzeyi projesinde sınıf.

Private Sub DocumentCustomDocumentProperties()

    Dim prps As Microsoft.Office.Core.DocumentProperties

    prps = CType(Me.CustomDocumentProperties, Office.DocumentProperties)
    prps.Add("Project Name", False, Microsoft.Office.Core.MsoDocProperties. _
        msoPropertyTypeString, "White Papers")

End Sub 
private void DocumentCustomDocumentProperties()
{

    Microsoft.Office.Core.DocumentProperties  prps;

    prps = (Office.DocumentProperties)this.CustomDocumentProperties;
    prps.Add("Project Name", false, Microsoft.Office.Core
        .MsoDocProperties.msoPropertyTypeString, "White Papers", missing);


}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

DocumentBase Sınıf

Microsoft.Office.Tools.Word Ad Alanı