VB 中实现 For Each

Public Property Get NewEnum() As IUnknown
    'this property allows you to enumerate
    'this collection with the For...Each syntax
    Set NewEnum = col.[_NewEnum]
End Property
posted @ 2008-07-04 10:13  toddzhuang  阅读(892)  评论(0编辑  收藏  举报