XMLNodes.Creator Özellik
Uygulama içinde alır XMLNodes Denetim oluşturulduğu.
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
Get
int Creator { get; }
Özellik Değeri
Tür: System.Int32
Uygulaması XMLNodes Denetim oluşturulduğu.
Açıklamalar
Çünkü XMLNodes koleksiyonu, Microsoft Office Word'de oluşturulmuş, bu özellik, onaltılık sayı 4 d 535744, "mswd." dizesini temsil döndürür Bu değer sabit gösterilebilen wdCreatorCode.
Örnekler
Aşağıdaki kod örneği Count Görüntülenecek özelliği olup bir XMLNodes Denetim oluşturulduğu Microsoft Office Word. Bu örnek, geçerli belge içerdiğini varsayar bir XMLNodes Denetim adlı InsertMemoToNodes.
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
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.");
}
}
.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üvenilir kod tarafından Kitaplıklar kullanma.