property Notes.Count as Long
Returns the number of objects in a collection.

TypeDescription
Long A long expression that specifies the number of notes in the collection.
The Count property counts the number of notes in the control. Use the Add method to add new notes to the chart area. Use the Item property to access a specific member of the notes collection. Use the Remove method to remove a specific Note in the collection. The Clear method removes all notes in the control. Use the NoteFromPoint property to access the note from the cursor.

The following VB sample prints the ID for each note in the control:

Dim n As EXG2ANTTLibCtl.Note
For Each n In G2antt1.Chart.Notes
    Debug.Print n.ID
Next