C
Chuck
The ListViewItem class contains a readonly property called ListView which
returns the item's containing ListView object.
I have not been able to figure out how this value is set. The
ListViewItemCollection class Add method has to be able to set this value,
but ListViewItem does not expose any public or protected methods/properties
that support setting the value.
I have looked for Rotor source code for the classes, but haven't been able
to find any.
The reason I want this information is to use it as an example of how to
write my own classes that support the item knowing its container. This
information has to be readonly to external users. Setting the container
value for the item has to occur within the Add method of the container.
Thank you for your help
Chuck
returns the item's containing ListView object.
I have not been able to figure out how this value is set. The
ListViewItemCollection class Add method has to be able to set this value,
but ListViewItem does not expose any public or protected methods/properties
that support setting the value.
I have looked for Rotor source code for the classes, but haven't been able
to find any.
The reason I want this information is to use it as an example of how to
write my own classes that support the item knowing its container. This
information has to be readonly to external users. Setting the container
value for the item has to occur within the Add method of the container.
Thank you for your help
Chuck