Bagikan melalui


XMLNodes.Count Property (2007 System)

Gets the number of items in the XMLNodes collection.

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

Syntax

'Declaration
Public ReadOnly Property Count As Integer
'Usage
Dim instance As XMLNodes 
Dim value As Integer 

value = instance.Count
public int Count { get; }
public:
property int Count {
    int get ();
}
public function get Count () : int

Property Value

Type: System.Int32
The number of items in the XMLNodes collection.

Examples

The following code example uses the Count property to display the number of items in an XMLNodes collection. This example assumes that the current document contains an XMLNodes control named SampleInsertNodes.

Private Sub DisplayItemCount()
    MsgBox("SampleInsertNodes contains " & _
        Me.SampleInsertNodes.Count.ToString() + " items.")
End Sub
private void DisplayItemCount()
{
    MessageBox.Show("SampleInsertNodes contains " +
        this.SampleInsertNodes.Count.ToString() + " items.");
}

.NET Framework Security

See Also

Reference

XMLNodes Class

XMLNodes Members

Microsoft.Office.Tools.Word Namespace