В C#
или VB.NET
Я хотел бы получить контроль ListView, которому принадлежит ListViewItemCollection
, что я прохожу к функции, чтобы быть в состоянии сделать что-то вроде этого:Как получить управление владельцем ListViewItemCollection?
Private Sub MySub(ByVal Items As ListView.ListViewItemCollection)
' Suspend the layout on the Listview Control that owns the Items collection.
Items.SourceControl.SuspendLayout()
Do something with the Items collection...
' Resume the layout on the Listview Control that owns the Items collection.
Items.SourceControl.ResumeLayout()
End Sub