XMLNode.Creator Özellik

Uygulama içinde alır XMLNode denetim oluşturuldu.

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

Sözdizimi

'Bildirim
ReadOnly Property Creator As Integer
int Creator { get; }

Özellik Değeri

Tür: System.Int32
Uygulamada XMLNode denetim oluşturuldu.

Notlar

Çünkü XMLNode denetimi, Microsoft Office Word'de oluşturulmuş, bu özellik "MSWD" dizesini temsil eden onaltılı bir sayı 4D 535744 verir Bu değer, sabit değeri tarafından gösterilebilen wdCreatorCode.

Örnekler

Aşağıdaki kod örneğinde Creator belirten bir ileti görüntülemek için özellik olup olmadığını bir XMLNode denetimi, Microsoft Office Word'de oluşturulmuş.Bu örnek, geçerli belgenin CustomerNode adında bir XMLNode içerdiğini varsaymaktadır.

Private Sub DisplayCreator()
    If Me.CustomerNode.Creator = Word.WdConstants.wdCreatorCode Then
        MsgBox(Me.CustomerNode.BaseName & _
            " element was created in Microsoft Office Word.")
    Else
        MsgBox(Me.CustomerNode.BaseName & _
            " element was not created in Microsoft Office Word.")
    End If
End Sub
private void DisplayCreator()
{
    if (this.CustomerNode.Creator == (int)Word.WdConstants.wdCreatorCode)
    {
        MessageBox.Show(this.CustomerNode.BaseName +
            " element was created in Microsoft Office Word.");
    }
    else
    {
        MessageBox.Show(this.CustomerNode.BaseName +
            " element was not created in Microsoft Office Word.");
    }
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

XMLNode Arabirim

Microsoft.Office.Tools.Word Ad Alanı