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" | 箭头:Bent-Up |
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" | 箭头:雪佛龙 |
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" | 流程图:排序 |
flowChartSummingJunction = "FlowChartSummingJunction" | 流程图:求和交接点 |
flowChartTerminator = "FlowChartTerminator" | 流程图:终止符 |
foldedCorner = "FoldedCorner" | 矩形:折叠角 |
frame = "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" | 箭头:Left-Right |
leftRightArrowCallout = "LeftRightArrowCallout" | 标注:Left-Right 箭头 |
leftRightCircularArrow = "LeftRightCircularArrow" | 箭头:圆形,双向有两个箭头 |
leftRightRibbon = "LeftRightRibbon" | 功能区:使用向左键和向右键直键 |
leftRightUpArrow = "LeftRightUpArrow" | 箭头:向左-向右-向上 |
leftUpArrow = "LeftUpArrow" | 箭头:Left-Up |
lightningBolt = "LightningBolt" | 闪电 |
lineInverse = "LineInverse" | 从形状 Top-Right 角到 Bottom-Left 角的直线 |
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" | 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" | 太阳 |
swooshArrow = "SwooshArrow" | 箭头:具有可变宽度的曲线向右箭头 |
teardrop = "Teardrop" | 眼泪 |
trapezoid = "Trapezoid" | 梯形 |
triangle = "Triangle" | 等腰三角形 |
upArrow = "UpArrow" | 箭头:向上 |
upArrowCallout = "UpArrowCallout" | 标注:向上箭头 |
upDownArrow = "UpDownArrow" | 箭头:Up-Down |
upDownArrowCallout = "UpDownArrowCallout" | 标注:Up-Down 箭头 |
uturnArrow = "UturnArrow" | 箭头:U 型转弯 |
verticalScroll = "VerticalScroll" | 滚动:垂直 |
wave = "Wave" | Wave |
wedgeEllipseCallout = "WedgeEllipseCallout" | 语音气泡:椭圆 |
wedgeRectCallout = "WedgeRectCallout" | 语音气泡:矩形 |
wedgeRRectCallout = "WedgeRRectCallout" | 语音气泡:带圆角的矩形 |