PowerPoint.GeometricShapeType enum
指定对象的形状类型 GeometricShape 。
注解
使用方
示例
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/powerpoint/shapes/shapes.yaml
// This function gets the collection of shapes on the first slide,
// and adds a hexagon shape to the collection, while specifying its
// location and size. Then it names the shape.
await PowerPoint.run(async (context) => {
const shapes: PowerPoint.ShapeCollection = context.presentation.slides.getItemAt(0).shapes;
const shapeOptions: PowerPoint.ShapeAddOptions = {
left: 100,
top: 100,
height: 150,
width: 150,
};
const hexagon: PowerPoint.Shape = shapes.addGeometricShape(PowerPoint.GeometricShapeType.hexagon, shapeOptions);
hexagon.name = "Hexagon";
await context.sync();
});
字段
| accentBorderCallout1 = "AccentBorderCallout1" | 标注:带边框和强调线的线条。 |
| accentBorderCallout2 = "AccentBorderCallout2" | 标注:带边框和强调线的弯曲线。 |
| accentBorderCallout3 = "AccentBorderCallout3" | 标注:带边框和强调条的双弯曲线。 |
| accentCallout1 = "AccentCallout1" | 标注:带强调线的线条。 |
| accentCallout2 = "AccentCallout2" | 标注:带强调线的弯曲线。 |
| accentCallout3 = "AccentCallout3" | 标注:带强调条的双弯线。 |
| actionButtonBackPrevious = "ActionButtonBackPrevious" | 操作按钮:返回或上一步。 |
| actionButtonBeginning = "ActionButtonBeginning" | 操作按钮:转到开头。 |
| actionButtonBlank = "ActionButtonBlank" | 操作按钮:空白。 |
| actionButtonDocument = "ActionButtonDocument" | 操作按钮:文档。 |
| actionButtonEnd = "ActionButtonEnd" | 操作按钮:转到末尾。 |
| actionButtonForwardNext = "ActionButtonForwardNext" | 操作按钮:前进或下一步。 |
| actionButtonHelp = "ActionButtonHelp" | 操作按钮:帮助。 |
| actionButtonHome = "ActionButtonHome" | 操作按钮:前往主页。 |
| actionButtonInformation = "ActionButtonInformation" | 操作按钮:获取信息。 |
| actionButtonMovie = "ActionButtonMovie" | 操作按钮:视频。 |
| actionButtonReturn = "ActionButtonReturn" | 操作按钮:返回。 |
| actionButtonSound = "ActionButtonSound" | 操作按钮:声音。 |
| arc = "Arc" | 圆弧几何形状。 |
| bentArrow = "BentArrow" | 箭头:弯曲。 |
| bentUpArrow = "BentUpArrow" | 箭头:向上弯曲。 |
| bevel = "Bevel" | 矩形几何形状:斜角。 |
| blockArc = "BlockArc" | 块弧几何形状。 |
| borderCallout1 = "BorderCallout1" | 标注:线。 |
| borderCallout2 = "BorderCallout2" | 标注:弯曲线。 |
| borderCallout3 = "BorderCallout3" | 标注:双弯线。 |
| bracePair = "BracePair" | 双大括号。 |
| bracketPair = "BracketPair" | 双括号。 |
| callout1 = "Callout1" | 标注:无边框线条。 |
| callout2 = "Callout2" | 标注:无边框的弯曲线。 |
| callout3 = "Callout3" | 标注:无边框的双折线。 |
| can = "Can" | 圆柱体几何形状。 |
| chartPlus = "ChartPlus" | 垂直和水平分为四个等分的矩形。 |
| chartStar = "ChartStar" | 沿垂直线和对角线分为六个部分的矩形。 |
| chartX = "ChartX" | 沿对角线分为四个部分的矩形。 |
| chevron = "Chevron" | 箭头:V 形。 |
| chord = "Chord" | 和弦几何形状。 |
| circularArrow = "CircularArrow" | 箭头:圆形。 |
| cloud = "Cloud" | 云。 |
| cloudCallout = "CloudCallout" | 思考泡泡:云。 |
| corner = "Corner" | L 形几何形状。 |
| cornerTabs = "CornerTabs" | 定义矩形的四个直角三角形。 |
| cube = "Cube" | 立方体几何形状。 |
| curvedDownArrow = "CurvedDownArrow" | 箭头:向下弯曲。 |
| curvedLeftArrow = "CurvedLeftArrow" | 箭头:向左弯曲。 |
| curvedRightArrow = "CurvedRightArrow" | 箭头:右弯曲。 |
| curvedUpArrow = "CurvedUpArrow" | 箭头:向上弯曲。 |
| decagon = "Decagon" | 十边形几何形状。 |
| diagonalStripe = "DiagonalStripe" | 斜条纹几何形状。 |
| diamond = "Diamond" | 菱形几何形状。 |
| dodecagon = "Dodecagon" | 十二边形几何形状。 |
| donut = "Donut" | 圆形几何形状:空心。 |
| doubleWave = "DoubleWave" | 双波几何形状。 |
| downArrow = "DownArrow" | 箭头:向下。 |
| downArrowCallout = "DownArrowCallout" | 标注:向下键。 |
| ellipse = "Ellipse" | 椭圆形几何形状。 |
| ellipseRibbon = "EllipseRibbon" | 功能区: 弯曲并向下倾斜。 |
| ellipseRibbon2 = "EllipseRibbon2" | 功能区:向上弯曲和倾斜。 |
| flowChartAlternateProcess = "FlowChartAlternateProcess" | 流程图: 备用流程。 |
| flowChartCollate = "FlowChartCollate" | 流程图: 整理。 |
| flowChartConnector = "FlowChartConnector" | 流程图: 连接器。 |
| flowChartDecision = "FlowChartDecision" | 流程图: 决定。 |
| flowChartDelay = "FlowChartDelay" | 流程图: 延迟。 |
| flowChartDisplay = "FlowChartDisplay" | 流程图:显示。 |
| flowChartDocument = "FlowChartDocument" | 流程图: 文档。 |
| flowChartExtract = "FlowChartExtract" | 流程图: 提取。 |
| flowChartInputOutput = "FlowChartInputOutput" | 流程图:数据。 |
| flowChartInternalStorage = "FlowChartInternalStorage" | 流程图: 内部存储。 |
| flowChartMagneticDisk = "FlowChartMagneticDisk" | 流程图:磁盘。 |
| flowChartMagneticDrum = "FlowChartMagneticDrum" | 流程图:直接访问存储。 |
| flowChartMagneticTape = "FlowChartMagneticTape" | 流程图:顺序访问存储。 |
| flowChartManualInput = "FlowChartManualInput" | 流程图:手动输入。 |
| flowChartManualOperation = "FlowChartManualOperation" | 流程图:手动操作。 |
| flowChartMerge = "FlowChartMerge" | 流程图: 合并。 |
| flowChartMultidocument = "FlowChartMultidocument" | 流程图: 多文档。 |
| flowChartOfflineStorage = "FlowChartOfflineStorage" | 流程图:离线存储。 |
| flowChartOffpageConnector = "FlowChartOffpageConnector" | 流程图: 跨页连接器。 |
| flowChartOnlineStorage = "FlowChartOnlineStorage" | 流程图:存储的数据。 |
| flowChartOr = "FlowChartOr" | 流程图: 或. |
| flowChartPredefinedProcess = "FlowChartPredefinedProcess" | 流程图: 预定义流程。 |
| flowChartPreparation = "FlowChartPreparation" | 流程图:准备。 |
| flowChartProcess = "FlowChartProcess" | 流程图: 过程。 |
| flowChartPunchedCard = "FlowChartPunchedCard" | 流程图:卡。 |
| flowChartPunchedTape = "FlowChartPunchedTape" | 流程图:穿孔胶带。 |
| flowChartSort = "FlowChartSort" | 流程图: sort. |
| flowChartSummingJunction = "FlowChartSummingJunction" | 流程图: 求和交汇点。 |
| flowChartTerminator = "FlowChartTerminator" | 流程图: “终结符”。 |
| foldedCorner = "FoldedCorner" | 矩形几何形状:折角。 |
| frame = "Frame" | 框架几何形状。 |
| funnel = "Funnel" | 漏斗几何形状。 |
| gear6 = "Gear6" | 齿轮:有六齿的齿轮。 |
| gear9 = "Gear9" | 齿轮:九齿齿轮。 |
| halfFrame = "HalfFrame" | 半帧几何形状。 |
| heart = "Heart" | 心形几何形状。 |
| heptagon = "Heptagon" | 七边形几何形状。 |
| hexagon = "Hexagon" | 六边形几何形状。 |
| homePlate = "HomePlate" | 箭头:五边形。 |
| horizontalScroll = "HorizontalScroll" | 滚动:水平。 |
| irregularSeal1 = "IrregularSeal1" | 爆炸:8 分。 |
| irregularSeal2 = "IrregularSeal2" | 爆炸:14 分。 |
| leftArrow = "LeftArrow" | 箭头:左。 |
| leftArrowCallout = "LeftArrowCallout" | 标注:向左键。 |
| leftBrace = "LeftBrace" | 左大括号。 |
| leftBracket = "LeftBracket" | 左括号。 |
| leftCircularArrow = "LeftCircularArrow" | 箭头:圆形,箭头方向相反。 |
| leftRightArrow = "LeftRightArrow" | 箭头:左右。 |
| leftRightArrowCallout = "LeftRightArrowCallout" | 标注:左右箭头。 |
| leftRightCircularArrow = "LeftRightCircularArrow" | 箭头:圆形,双向都有两个箭头。 |
| leftRightRibbon = "LeftRightRibbon" | 功能区:笔直,同时带左右箭头。 |
| leftRightUpArrow = "LeftRightUpArrow" | 箭头:左右向上。 |
| leftUpArrow = "LeftUpArrow" | 箭头:左上。 |
| lightningBolt = "LightningBolt" | 闪电形。 |
| lineInverse = "LineInverse" | 从形状右上角到左下角的直线。 |
| mathDivide = "MathDivide" | 除号。 |
| mathEqual = "MathEqual" | 等于. |
| mathMinus = "MathMinus" | 减号。 |
| mathMultiply = "MathMultiply" | 乘号。 |
| mathNotEqual = "MathNotEqual" | 不等于。 |
| mathPlus = "MathPlus" | 加号。 |
| moon = "Moon" | 月亮几何形状。 |
| nonIsoscelesTrapezoid = "NonIsoscelesTrapezoid" | 可能具有不相等边的梯形几何形状。 |
| noSmoking = "NoSmoking" | “不允许”符号。 |
| notchedRightArrow = "NotchedRightArrow" | 箭头:向右缺口。 |
| octagon = "Octagon" | 八边形几何形状。 |
| parallelogram = "Parallelogram" | 平行四边形几何形状。 |
| pentagon = "Pentagon" | 五边形几何形状。 |
| pie = "Pie" | 具有可调跨度区域的部分圆形几何形状。 |
| pieWedge = "PieWedge" | 部分圆形几何形状。 |
| plaque = "Plaque" | 斑块几何形状。 |
| plaqueTabs = "PlaqueTabs" | 定义矩形的四个四分之一圆。 |
| plus = "Plus" | 十字几何形状。 |
| quadArrow = "QuadArrow" | 箭头:四边形。 |
| quadArrowCallout = "QuadArrowCallout" | 标注:四边形箭头。 |
| rectangle = "Rectangle" | 矩形几何形状。 |
| ribbon = "Ribbon" | 功能区:向下倾斜。 |
| ribbon2 = "Ribbon2" | 功能区:向上倾斜。 |
| rightArrow = "RightArrow" | 箭头:向右。 |
| rightArrowCallout = "RightArrowCallout" | 标注:向右键。 |
| rightBrace = "RightBrace" | 右大括号。 |
| rightBracket = "RightBracket" | 右括号。 |
| rightTriangle = "RightTriangle" | 直角三角形几何形状。 |
| round1Rectangle = "Round1Rectangle" | 矩形几何形状:单角圆角。 |
| round2DiagonalRectangle = "Round2DiagonalRectangle" | 矩形几何形状:角线圆角。 |
| round2SameRectangle = "Round2SameRectangle" | 矩形几何形状:上角圆角。 |
| roundRectangle = "RoundRectangle" | 矩形几何形状:圆角。 |
| smileyFace = "SmileyFace" | 笑脸。 |
| snip1Rectangle = "Snip1Rectangle" | 矩形几何形状:单角剪切。 |
| snip2DiagonalRectangle = "Snip2DiagonalRectangle" | 矩形几何形状:剪切的对角线。 |
| snip2SameRectangle = "Snip2SameRectangle" | 矩形几何形状:截取顶角。 |
| snipRoundRectangle = "SnipRoundRectangle" | 矩形几何形状:顶角一个圆角,一个剪角。 |
| squareTabs = "SquareTabs" | 定义矩形的四个小正方形。 |
| star10 = "Star10" | 星级:10 分。 |
| star12 = "Star12" | 星级:12 分。 |
| star16 = "Star16" | 星级:16 分。 |
| star24 = "Star24" | 星级:24 分。 |
| star32 = "Star32" | 星级:32 分。 |
| star4 = "Star4" | 星级:4 分。 |
| star5 = "Star5" | 星级:5 分。 |
| star6 = "Star6" | 星级:6 分。 |
| star7 = "Star7" | 星级:7 分。 |
| star8 = "Star8" | 星级:8 分。 |
| stripedRightArrow = "StripedRightArrow" | 箭头:向右条纹。 |
| sun = "Sun" | Sun. |
| swooshArrow = "SwooshArrow" | 箭头:宽度可变的向右弯曲箭头。 |
| teardrop = "Teardrop" | 泪滴几何形状。 |
| trapezoid = "Trapezoid" | 梯形几何形状。 |
| triangle = "Triangle" | 等腰三角形几何形状。 |
| upArrow = "UpArrow" | 箭头:向上。 |
| upArrowCallout = "UpArrowCallout" | 标注:向上键。 |
| upDownArrow = "UpDownArrow" | 箭头:上-下。 |
| upDownArrowCallout = "UpDownArrowCallout" | 标注:向上-向下箭头。 |
| uturnArrow = "UturnArrow" | 箭头:掉头。 |
| verticalScroll = "VerticalScroll" | 滚动:垂直。 |
| wave = "Wave" | 波浪几何形状。 |
| wedgeEllipseCallout = "WedgeEllipseCallout" | 对话泡泡:椭圆形。 |
| wedgeRectCallout = "WedgeRectCallout" | 对话泡泡:矩形。 |
| wedgeRRectCallout = "WedgeRRectCallout" | 对话泡泡:角圆角的矩形。 |