XMLNodes.Creator Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the application in which the XMLNodes control was created.
public:
property int Creator { int get(); };
public int Creator { get; }
member this.Creator : int
Public ReadOnly Property Creator As Integer
Property Value
The application in which the XMLNodes control was created.
Examples
The following code example uses the Count property to display whether an XMLNodes control was created in Microsoft Office Word. This example assumes that the current document contains an XMLNodes control named InsertMemoToNodes
.
private void DisplayCreator()
{
if (this.InsertMemoToNodes.Creator ==
(int)Word.WdConstants.wdCreatorCode)
{
MessageBox.Show("InsertMemoToNodes was created " +
"in Microsoft Office Word.");
}
else
{
MessageBox.Show("InsertMemoToNodes was not created " +
" in Microsoft Office Word.");
}
}
Private Sub DisplayCreator()
If Me.InsertMemoToNodes.Creator = _
Word.WdConstants.wdCreatorCode Then
MsgBox("InsertMemoToNodes was created " & _
"in Microsoft Office Word.")
Else
MsgBox("InsertMemoToNodes was not created " & _
" in Microsoft Office Word.")
End If
End Sub
Remarks
Because the XMLNodes collection 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.