Share via


XMLNode.Creator Property (2007 System)

Gets the application in which the XMLNode control was created.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Creator As Integer
'Usage
Dim instance As XMLNode 
Dim value As Integer 

value = instance.Creator
[BrowsableAttribute(false)]
public int Creator { get; }
[BrowsableAttribute(false)]
public:
property int Creator {
    int get ();
}
public function get Creator () : int

Property Value

Type: System.Int32
The application in which the XMLNode control was created.

Remarks

Because the XMLNode control was created in Microsoft Office Word, this property returns the hexadecimal number 4D535744, which represents the string "MSWD." This value can also be represented by the constant wdCreatorCode.

Examples

The following code example uses the Creator property to display a message indicating whether an XMLNode control was created in Microsoft Office Word. This example assumes that the current document contains an XMLNode named CustomerNode.

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 Security

See Also

Reference

XMLNode Class

XMLNode Members

Microsoft.Office.Tools.Word Namespace