Passolo AddIn check target

i want create AddIn for passolo 2015 to check all target segments and if contain an error add this error to check box so my questions is :

what is the function in Pass.AddIn.Framework to get target segments and function to add my items to error check box?

Best Regards,