groupIndex is the value returned by the CreateContentGroup method.
Call EndMarkedContent when you finish adding content in a group.
See CreateContentGroup for an example.