DocumentBase.BuiltInDocumentProperties Özellik
Alır bir DocumentProperties belge için yerleşik belge özelliklerini temsil eden koleksiyonu.
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 BuiltInDocumentProperties As Object
public Object BuiltInDocumentProperties { get; }
Özellik Değeri
Tür: System.Object
A DocumentProperties belge için yerleşik belge özelliklerini temsil eden koleksiyonu.
Notlar
Tek bir geri dönmek için DocumentProperty belirli yerleşik belge özelliği temsil eden, kullanın BuiltInDocumentProperties(index) Visual Basic veya BuiltInDocumentPropertiesindex C# [NULL]'ta, buradaindex biri olan WdBuiltInProperty değerleri.
Microsoft Office Word'ün yerleşik belge özelliklerinden biri için bir değer tanımlamazsanız, okuma Value bu belge özelliği için özellik aykırı.
Kullanım CustomDocumentProperties özel belge özellikleri topluluğu döndürmek için özelliği.
Örnekler
Aşağıdaki kod örneği belgenin oluşturulduğu saat ve tarihi gösteren bir ileti görüntüler.Bu örneği kullanmak için çalıştırın ThisDocument bir belge düzeyi projesinde sınıf.
Private Sub DocumentBuiltInDocumentProperties()
MessageBox.Show("Document creation: " & CType(Me.BuiltInDocumentProperties, _
Office.DocumentProperties)(Word.WdBuiltInProperty.wdPropertyTimeCreated). _
Value.ToString())
End Sub
private void DocumentBuiltInDocumentProperties()
{
MessageBox.Show("Document creation: " + ((Office.DocumentProperties)
(this.BuiltInDocumentProperties))[Word.WdBuiltInProperty.
wdPropertyTimeCreated].Value.ToString());
}
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.