How to use System.Predicate(Of McMMSubFeature)?
Hi All,
I'd like to try using the FindAll and RemoveAll methods of the McMMSubFeature collection in McMMData. Although the commad mentions `System.Predicate(Of McMMSubFeature)`, I'm not quite sure how to actually use it in my code. Could you provide an example of writing instructions using `System.Predicate(Of McMMSubFeature)`?

Wesan
I'd like to try using the FindAll and RemoveAll methods of the McMMSubFeature collection in McMMData. Although the commad mentions `System.Predicate(Of McMMSubFeature)`, I'm not quite sure how to actually use it in my code. Could you provide an example of writing instructions using `System.Predicate(Of McMMSubFeature)`?

Wesan
0
Best Answer
-
Hi Wesan,
McMMData.SubFeatures is a List(Of MMSubfeature), which you can use in standard way as any List. LINQ suggested using FindAll. You can check LINQ examples of using FindAll https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1.findall?view=net-10.0&utm_source=chatgpt.com
You can use McMMSubFeature.Name property to find feature by name.
You cannot use RemoveAll, as the SubFeatures is an auto-generated list.
If you want to remove some sub-features, you can select them and then use McMMData.DeleteSelected.
Regards,
Yuri
0
Categories
- All Categories
- 962 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 487 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions
