You’ll see I apply opacity and fill color to the group, but unless it contains objects, it draws nothing at all.
I think the documentation should be more explicit, but I agree that
grp.BorderOpacity = 100
grp.BorderColor = &c0000ff
etc.
do nothing.
Object2D is the parent class for Group2D so it ends up having these properties like BorderColor but they do nothing. One might imagine that if there were two objects inside the Group2D, as in your example, grp.BorderColor = &c0000ff might make the BorderColor of both these Object2D = &c0000ff but that is not the case. If you want to achieve this result, you have to set up a for loop.
Var grp As New Group2D
Var lastIndex As Integer = grp.Count - 1
For nIndex As Integer = 0 To lastIndex
grp.Item(nIndex).BorderColor = &c0000ff
grp.Item(nIndex).BorderOpacity = 100
Next nIndex
As for the example you cite:
The online example code doesn’t event append the OvalShape, and needs fixing
I would heartily agree. Even if you did remember to add the OvalShape, I believe that the lines of code like
a.BorderOpacity = 100
a.BorderColor = &c0000ff
accomplish nothing. I suspect that the Rotation would do something.
Var o As New OvalShape
o.Width = 60
o.Height = 120
o.FillColor = Color.RGB(127, 127, 255)
Var a As New Group2D
a.AddObject(o)
a.Rotation = 0.90
a.ArcAngle = 1.57
a.BorderOpacity = 100
a.BorderColor = &c0000ff
a.BorderWidth = 2.75
a.Fill = 50
a.FillColor = Color.RGB(255, 0, 127)
g.DrawObject(a, 100, 100)