Word) (GroupShapes 物件
代表群組圖案中的個別圖案。 包含在圖形群組中的每個圖形都是以 Shape 物件表示。
註解
使用 GroupItems 屬性可傳回 GroupShapes 集合。 使用 GroupItems (Index) ,其中 Index 是群組圖案內的個別圖案數目,可從 GroupShapes 集合傳回單一圖案。 下列範例會在使用中文件內新增三個三角形、將其組成群組、設定整個群組的色彩,然後單獨變更第二個三角形的色彩。
With ActiveDocument.Shapes
.AddShape(msoShapeIsoscelesTriangle, _
10, 10, 100, 100).Name = "shpOne"
.AddShape(msoShapeIsoscelesTriangle, _
150, 10, 100, 100).Name = "shpTwo"
.AddShape(msoShapeIsoscelesTriangle, _
300, 10, 100, 100).Name = "shpThree"
With .Range(Array("shpOne", "shpTwo", "shpThree")).Group
.Fill.PresetTextured msoTextureBlueTissuePaper
.GroupItems(2).Fill.PresetTextured msoTextureGreenMarble
End With
End With
請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。