Word) (Shape.GroupItems 屬性

會傳回代表指定群組中之各個圖案的 GroupShapes 物件。 唯讀。

語法

expressionGroupItems

表達 代表 Shape 物件的變數。

註解

這個屬性適用於代表群組的圖案的 Shape 物件。 使用 GroupShapes 物件的 Item 方法可傳回單一圖案從群組中。

範例

本範例在 myDocument 中新增了三個三角形,並組合這些三角形,為整個群組設定色彩,然後變更第二個三角形的色彩。

Set myDocument = ActiveDocument 
With myDocument.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

另請參閱

Shape 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應