ListItem[] 类型如何在 VB.net中表示

来源:互联网 发布:php oa系统原理 编辑:程序博客网 时间:2024/06/10 21:52
 
Dim   item   As   ListItem  
  For   Each   item   In   ListBox.Items  
        If   item.Selected   Then  
              ............  
        End   If  
  Next   item
 

但文档中listitem是不可承的,初始化又如何附
 
?  
  Dim   Item   As   ListItem   =   new   ListItem()  
  Item.Text   =   "xxxxxx"  
  Item.Value   =   "yyyyyyyy"   

 
原创粉丝点击