为指定的 Shape 或 ShapeRange 对象返回或设置形状类型,除了直线、任意多边形图形或连接符外,必须表示一 AutoShape。可读写。MsoAutoShapeType 类型。
| MsoAutoShapeType 可以是下列 MsoAutoShapeType 类型常数之一。 |
| msoShapeFlowchartConnector |
| msoShapeFlowchartData |
| msoShapeFlowchartDecision |
| msoShapeFlowchartDelay |
| msoShapeFlowchartDirectAccessStorage |
| msoShapeFlowchartDisplay |
| msoShapeFlowchartDocument |
| msoShapeFlowchartExtract |
| msoShapeFlowchartInternalStorage |
| msoShapeFlowchartMagneticDisk |
| msoShapeFlowchartManualInput |
| msoShapeFlowchartManualOperation |
| msoShapeFlowchartMerge |
| msoShapeFlowchartMultidocument |
| msoShapeFlowchartOffpageConnector |
| msoShapeFlowchartOr |
| msoShapeFlowchartPredefinedProcess |
| msoShapeFlowchartPreparation |
| msoShapeFlowchartProcess |
| msoShapeFlowchartPunchedTape |
| msoShapeFlowchartSequentialAccessStorage |
| msoShapeFlowchartSort |
| msoShapeFlowchartStoredData |
| msoShapeFlowchartSummingJunction |
| msoShapeFlowchartTerminator |
| msoShapeFoldedCorner |
| msoShapeHeart |
| msoShapeHexagon |
| msoShapeHorizontalScroll |
| msoShapeIsoscelesTriangle |
| msoShapeLeftArrow |
| msoShapeLeftArrowCallout |
| msoShapeLeftBrace |
| msoShapeLeftBracket |
| msoShapeLeftRightArrow |
| msoShapeLeftRightArrowCallout |
| msoShapeLeftRightUpArrow |
| msoShapeLeftUpArrow |
| msoShapeLightningBolt |
| msoShapeLineCallout1 |
| msoShapeLineCallout1AccentBar |
| msoShapeLineCallout1BorderandAccentBar |
| msoShapeLineCallout1NoBorder |
| msoShapeLineCallout2 |
| msoShapeLineCallout2AccentBar |
| msoShapeLineCallout2BorderandAccentBar |
| msoShapeLineCallout2NoBorder |
| msoShapeLineCallout3 |
| msoShapeLineCallout3AccentBar |
| msoShapeLineCallout3BorderandAccentBar |
| msoShapeLineCallout3NoBorder |
| msoShapeLineCallout4 |
| msoShapeLineCallout4AccentBar |
| msoShapeLineCallout4BorderandAccentBar |
| msoShapeLineCallout4NoBorder |
| msoShapeMixed |
| msoShapeMoon |
| msoShapeNoSymbol |
| msoShapeNotchedRightArrow |
| msoShapeNotPrimitive |
| msoShapeOctagon |
| msoShapeOval |
| msoShapeOvalCallout |
| msoShapeParallelogram |
| msoShapePentagon |
| msoShapePlaque |
| msoShapeQuadArrow |
| msoShapeQuadArrowCallout |
| msoShapeRectangle |
| msoShapeRectangularCallout |
| msoShapeRegularPentagon |
| msoShapeRightArrow |
| msoShapeRightArrowCallout |
| msoShapeRightBrace |
| msoShapeRightBracket |
| msoShapeRightTriangle |
| msoShapeRoundedRectangle |
| msoShapeRoundedRectangularCallout |
| msoShapeSmileyFace |
| msoShapeStripedRightArrow |
| msoShapeSun |
| msoShapeTrapezoid |
| msoShapeUpArrow |
| msoShapeUpArrowCallout |
| msoShapeUpDownArrow |
| msoShapeUpDownArrowCallout |
| msoShapeUpRibbon |
| msoShapeUTurnArrow |
| msoShapeVerticalScroll |
| msoShapeWave |
| msoShapeFlowchartCollate |
| msoShape16pointStar |
| msoShape24pointStar |
| msoShape32pointStar |
| msoShape4pointStar |
| msoShape5pointStar |
| msoShape8pointStar |
| msoShapeActionButtonBackorPrevious |
| msoShapeActionButtonBeginning |
| msoShapeActionButtonCustom |
| msoShapeActionButtonDocument |
| msoShapeActionButtonEnd |
| msoShapeActionButtonForwardorNext |
| msoShapeActionButtonHelp |
| msoShapeActionButtonHome |
| msoShapeActionButtonInformation |
| msoShapeActionButtonMovie |
| msoShapeActionButtonReturn |
| msoShapeActionButtonSound |
| msoShapeArc |
| msoShapeBalloon |
| msoShapeBentArrow |
| msoShapeBentUpArrow |
| msoShapeBevel |
| msoShapeBlockArc |
| msoShapeCan |
| msoShapeChevron |
| msoShapeCircularArrow |
| msoShapeCloudCallout |
| msoShapeCross |
| msoShapeCube |
| msoShapeCurvedDownArrow |
| msoShapeCurvedDownRibbon |
| msoShapeCurvedLeftArrow |
| msoShapeCurvedRightArrow |
| msoShapeCurvedUpArrow |
| msoShapeCurvedUpRibbon |
| msoShapeDiamond |
| msoShapeDonut |
| msoShapeDoubleBrace |
| msoShapeDoubleBracket |
| msoShapeDoubleWave |
| msoShapeDownArrow |
| msoShapeDownArrowCallout |
| msoShapeDownRibbon |
| msoShapeExplosion1 |
| msoShapeExplosion2 |
| msoShapeFlowchartAlternateProcess |
| msoShapeFlowchartCard |
expression.AutoShapeType
expression 必选。该表达式返回“应用于”列表中的对象之一。可读写。Long 类型。
注意 改变一个形状的类型时,该形状保留其大小、颜色和其他属性。
使用 ConnectorFormat 对象的 Type 属性设置或返回连接符类型。
本示例在 myDocument 中用 16 角星替换所有 32 角星。
Set myDocument = ActivePresentation.Slides(1)
For Each s In myDocument.Shapes
If s.AutoShapeType = msoShape16pointStar Then
s.AutoShapeType = msoShape32pointStar
End If
Next