Aracılığıyla paylaş


DocumentBase.Creator Özellik

Belgenin oluşturulduğu uygulama alır.

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 Creator As Integer
public int Creator { get; }

Özellik Değeri

Tür: System.Int32
Belgenin oluşturulduğu uygulama.

Notlar

Belirtilen nesne Microsoft Office Word'de oluşturduysanız, bu özellik "mswd" dizesini gösteren onaltılık sayı 4D 535744 döndürür. Bu değer sabit tarafından gösterilebilen wdCreatorCode.

Örnekler

Aşağıdaki kod örneği oluşturan belgenin adını 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 DocumentCreator()
    If Me.Creator = Word.WdConstants.wdCreatorCode Then
        MessageBox.Show("The Creator is Microsoft Office Word.")
    End If
End Sub
private void DocumentCreator()
{
    if (this.Creator == (int)Word.WdConstants.wdCreatorCode)
    {
        MessageBox.Show("The Creator is Microsoft Office Word.");
    }
} 

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

DocumentBase Sınıf

Microsoft.Office.Tools.Word Ad Alanı