GetPenProperty/SetPenProperty etc. are executed on the selected group. For example, if group 2 is selected, calling the AddPen method will add a pen to group 2.
In addition, one group is already added to the graph control at the initial setting, and group number 1 is selected by default.