我想做一些类似于listbox.children属性。我知道我可以这样写返回列表框的孩子:功能属性
Public ReadOnly Property Children(index as integer)
Get
'Return the children at the specified index
End Get
End Property
但我怎么能做出Children属性的功能是什么?例如,List.Children.Count将返回列表条目的计数,但List.Children(0)将返回第一个条目。
将'Option Strict On'放在源代码文件的顶部。您必须进行的更改才能使此代码进行编译,这有助于您找到正确的答案。 –