ListView - GetCell() method
- 4 years ago
Hi,
> they simply instantiate the class ItemTextEventArgs tea = new ItemTextEventArgs();
Generally speaking, the same is possible in TestComplete:
-- You need to add the assembly that implements the ItemTextEventArgs class to the CLR Bridge as well as all required dependent assemblies;
-- After that in the code completion window under dotNET node you should see the assembly, class name, its constructor (named as .zctor() ) and all other public methods provided by the class.
Depending on your scripting language you should be able to write the code like this:
var iteaClass = dotNET.<assembly>.ItemTextEventArgs.zctor();
and use created class instance in your code.
See https://support.smartbear.com/testcomplete/docs/app-testing/desktop/net/creating-class-instances.html and related help topics for more details.
Hope this will help.