How to Check GroupCheckBoxes?

I am using code to add bespoke options to a group checkbox specific to each user. I want to be able to have some of the options selected by default onread. Is this possible.

I am using this sort of code to make the Checkbox:

It’s the selectedIndices property or the value property that will allow you to check those options in code.

Thank you.