マルチパート ポリゴンを取得する方法

Dim pGeometryCollection As IGeometryCollection
Set pGeometryCollection = New Polygon
'Polygonオブジェクトがマルチパートで作成されていることを前提

Dim pPointCollection As IPointCollection
Dim pPoint As IPoint
Dim i As Long
Dim j As Long

'個々のパート(Ring)を取得
For i = 0 To pGeometryCollection.GeometryCount - 1
    Set pPointCollection = pGeometryCollection.Geometry(i)
    
    '各Ringの頂点(Point)を取得
    For j = 0 To pPointCollection.PointCount - 1
        Set pPoint = pPointCollection.Point(i)
        Debug.Print pPoint.X, pPoint.Y
    Next j
    
Next i