PowerPoint.GeometricShapeType enum
Specifies the shape type for a GeometricShape object.
Remarks
[ API set: PowerPointApi 1.4 ]
Examples
// 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();
});
Fields
| accentBorderCallout1 = "AccentBorderCallout1" | Callout: line with border and accent bar. |
| accentBorderCallout2 = "AccentBorderCallout2" | Callout: bent line with border and accent bar. |
| accentBorderCallout3 = "AccentBorderCallout3" | Callout: double bent line with border and accent bar. |
| accentCallout1 = "AccentCallout1" | Callout: line with accent bar. |
| accentCallout2 = "AccentCallout2" | Callout: bent line with accent bar. |
| accentCallout3 = "AccentCallout3" | Callout: double bent line with accent bar. |
| actionButtonBackPrevious = "ActionButtonBackPrevious" | Action button: go back or previous. |
| actionButtonBeginning = "ActionButtonBeginning" | Action button: go to beginning. |
| actionButtonBlank = "ActionButtonBlank" | Action button: blank. |
| actionButtonDocument = "ActionButtonDocument" | Action button: document. |
| actionButtonEnd = "ActionButtonEnd" | Action button: go to end. |
| actionButtonForwardNext = "ActionButtonForwardNext" | Action button: go forward or next. |
| actionButtonHelp = "ActionButtonHelp" | Action button: help. |
| actionButtonHome = "ActionButtonHome" | Action button: go home. |
| actionButtonInformation = "ActionButtonInformation" | Action button: get information. |
| actionButtonMovie = "ActionButtonMovie" | Action button: video. |
| actionButtonReturn = "ActionButtonReturn" | Action button: return. |
| actionButtonSound = "ActionButtonSound" | Action button: sound. |
| arc = "Arc" | Arc geometric shape. |
| bentArrow = "BentArrow" | Arrow: bent. |
| bentUpArrow = "BentUpArrow" | Arrow: bent-up. |
| bevel = "Bevel" | Rectangle geometric shape: beveled. |
| blockArc = "BlockArc" | Block arc geometric shape. |
| borderCallout1 = "BorderCallout1" | Callout: line. |
| borderCallout2 = "BorderCallout2" | Callout: bent line. |
| borderCallout3 = "BorderCallout3" | Callout: double bent line. |
| bracePair = "BracePair" | Double brace. |
| bracketPair = "BracketPair" | Double bracket. |
| callout1 = "Callout1" | Callout: line with no border. |
| callout2 = "Callout2" | Callout: bent line with no border. |
| callout3 = "Callout3" | Callout: double bent line with no border. |
| can = "Can" | Cylinder geometric shape. |
| chartPlus = "ChartPlus" | A rectangle divided vertically and horizontally into four quarters. |
| chartStar = "ChartStar" | A rectangle divided into six parts along a vertical line and diagonal lines. |
| chartX = "ChartX" | A rectangle divided into four parts along diagonal lines. |
| chevron = "Chevron" | Arrow: chevron. |
| chord = "Chord" | Chord geometric shape. |
| circularArrow = "CircularArrow" | Arrow: circular. |
| cloud = "Cloud" | Cloud. |
| cloudCallout = "CloudCallout" | Thought bubble: cloud. |
| corner = "Corner" | L-shape geometric shape. |
| cornerTabs = "CornerTabs" | Four right triangles that define a rectangular shape. |
| cube = "Cube" | Cube geometric shape. |
| curvedDownArrow = "CurvedDownArrow" | Arrow: curved down. |
| curvedLeftArrow = "CurvedLeftArrow" | Arrow: curved left. |
| curvedRightArrow = "CurvedRightArrow" | Arrow: curved right. |
| curvedUpArrow = "CurvedUpArrow" | Arrow: curved up. |
| decagon = "Decagon" | Decagon geometric shape. |
| diagonalStripe = "DiagonalStripe" | Diagonal stripe geometric shape. |
| diamond = "Diamond" | Diamond geometric shape. |
| dodecagon = "Dodecagon" | Dodecagon geometric shape. |
| donut = "Donut" | Circle geometric shape: hollow. |
| doubleWave = "DoubleWave" | Double wave geometric shape. |
| downArrow = "DownArrow" | Arrow: down. |
| downArrowCallout = "DownArrowCallout" | Callout: down arrow. |
| ellipse = "Ellipse" | Oval geometric shape. |
| ellipseRibbon = "EllipseRibbon" | Ribbon: curved and tilted down. |
| ellipseRibbon2 = "EllipseRibbon2" | Ribbon: curved and tilted up. |
| flowChartAlternateProcess = "FlowChartAlternateProcess" | Flowchart: alternate process. |
| flowChartCollate = "FlowChartCollate" | Flowchart: collate. |
| flowChartConnector = "FlowChartConnector" | Flowchart: connector. |
| flowChartDecision = "FlowChartDecision" | Flowchart: decision. |
| flowChartDelay = "FlowChartDelay" | Flowchart: delay. |
| flowChartDisplay = "FlowChartDisplay" | Flowchart: display. |
| flowChartDocument = "FlowChartDocument" | Flowchart: document. |
| flowChartExtract = "FlowChartExtract" | Flowchart: extract. |
| flowChartInputOutput = "FlowChartInputOutput" | Flowchart: data. |
| flowChartInternalStorage = "FlowChartInternalStorage" | Flowchart: internal storage. |
| flowChartMagneticDisk = "FlowChartMagneticDisk" | Flowchart: magnetic disk. |
| flowChartMagneticDrum = "FlowChartMagneticDrum" | Flowchart: direct access storage. |
| flowChartMagneticTape = "FlowChartMagneticTape" | Flowchart: sequential access storage. |
| flowChartManualInput = "FlowChartManualInput" | Flowchart: manual input. |
| flowChartManualOperation = "FlowChartManualOperation" | Flowchart: manual operation. |
| flowChartMerge = "FlowChartMerge" | Flowchart: merge. |
| flowChartMultidocument = "FlowChartMultidocument" | Flowchart: multidocument. |
| flowChartOfflineStorage = "FlowChartOfflineStorage" | Flowchart: offline storage. |
| flowChartOffpageConnector = "FlowChartOffpageConnector" | Flowchart: off-page connector. |
| flowChartOnlineStorage = "FlowChartOnlineStorage" | Flowchart: stored data. |
| flowChartOr = "FlowChartOr" | Flowchart: or. |
| flowChartPredefinedProcess = "FlowChartPredefinedProcess" | Flowchart: predefined process. |
| flowChartPreparation = "FlowChartPreparation" | Flowchart: preparation. |
| flowChartProcess = "FlowChartProcess" | Flowchart: process. |
| flowChartPunchedCard = "FlowChartPunchedCard" | Flowchart: card. |
| flowChartPunchedTape = "FlowChartPunchedTape" | Flowchart: punched tape. |
| flowChartSort = "FlowChartSort" | Flowchart: sort. |
| flowChartSummingJunction = "FlowChartSummingJunction" | Flowchart: summing junction. |
| flowChartTerminator = "FlowChartTerminator" | Flowchart: terminator. |
| foldedCorner = "FoldedCorner" | Rectangle geometric shape: folded corner. |
| frame = "Frame" | Frame geometric shape. |
| funnel = "Funnel" | Funnel geometric shape. |
| gear6 = "Gear6" | Gear: a gear with six teeth. |
| gear9 = "Gear9" | Gear: a gear with nine teeth. |
| halfFrame = "HalfFrame" | Half frame geometric shape. |
| heart = "Heart" | Heart geometric shape. |
| heptagon = "Heptagon" | Heptagon geometric shape. |
| hexagon = "Hexagon" | Hexagon geometric shape. |
| homePlate = "HomePlate" | Arrow: pentagon. |
| horizontalScroll = "HorizontalScroll" | Scroll: horizontal. |
| irregularSeal1 = "IrregularSeal1" | Explosion: 8 points. |
| irregularSeal2 = "IrregularSeal2" | Explosion: 14 points. |
| leftArrow = "LeftArrow" | Arrow: left. |
| leftArrowCallout = "LeftArrowCallout" | Callout: left arrow. |
| leftBrace = "LeftBrace" | Left brace. |
| leftBracket = "LeftBracket" | Left bracket. |
| leftCircularArrow = "LeftCircularArrow" | Arrow: circular with opposite arrow direction. |
| leftRightArrow = "LeftRightArrow" | Arrow: left-right. |
| leftRightArrowCallout = "LeftRightArrowCallout" | Callout: left-right arrow. |
| leftRightCircularArrow = "LeftRightCircularArrow" | Arrow: circular with two arrows in both directions. |
| leftRightRibbon = "LeftRightRibbon" | Ribbon: straight with both left and right arrows. |
| leftRightUpArrow = "LeftRightUpArrow" | Arrow: left-right-up. |
| leftUpArrow = "LeftUpArrow" | Arrow: left-up. |
| lightningBolt = "LightningBolt" | Lightning bolt. |
| lineInverse = "LineInverse" | Straight line from top-right corner to bottom-left corner of the shape. |
| mathDivide = "MathDivide" | Division sign. |
| mathEqual = "MathEqual" | Equals. |
| mathMinus = "MathMinus" | Minus sign. |
| mathMultiply = "MathMultiply" | Multiplication sign. |
| mathNotEqual = "MathNotEqual" | Not equal. |
| mathPlus = "MathPlus" | Plus sign. |
| moon = "Moon" | Moon geometric shape. |
| nonIsoscelesTrapezoid = "NonIsoscelesTrapezoid" | Trapezoid geometric shape which may have non-equal sides. |
| noSmoking = "NoSmoking" | "Not allowed" symbol. |
| notchedRightArrow = "NotchedRightArrow" | Arrow: notched right. |
| octagon = "Octagon" | Octagon geometric shape. |
| parallelogram = "Parallelogram" | Parallelogram geometric shape. |
| pentagon = "Pentagon" | Pentagon geometric shape. |
| pie = "Pie" | Partial circle geometric shape with adjustable spanning area. |
| pieWedge = "PieWedge" | Partial circle geometric shape. |
| plaque = "Plaque" | Plaque geometric shape. |
| plaqueTabs = "PlaqueTabs" | Four quarter circles that define a rectangular shape. |
| plus = "Plus" | Cross geometric shape. |
| quadArrow = "QuadArrow" | Arrow: quad. |
| quadArrowCallout = "QuadArrowCallout" | Callout: quad arrow. |
| rectangle = "Rectangle" | Rectangle geometric shape. |
| ribbon = "Ribbon" | Ribbon: tilted down. |
| ribbon2 = "Ribbon2" | Ribbon: tilted up. |
| rightArrow = "RightArrow" | Arrow: right. |
| rightArrowCallout = "RightArrowCallout" | Callout: right arrow. |
| rightBrace = "RightBrace" | Right brace. |
| rightBracket = "RightBracket" | Right bracket. |
| rightTriangle = "RightTriangle" | Right triangle geometric shape. |
| round1Rectangle = "Round1Rectangle" | Rectangle geometric shape: single corner rounded. |
| round2DiagonalRectangle = "Round2DiagonalRectangle" | Rectangle geometric shape: diagonal corners rounded. |
| round2SameRectangle = "Round2SameRectangle" | Rectangle geometric shape: top corners rounded. |
| roundRectangle = "RoundRectangle" | Rectangle geometric shape: rounded corners. |
| smileyFace = "SmileyFace" | Smiley face. |
| snip1Rectangle = "Snip1Rectangle" | Rectangle geometric shape: single corner snipped. |
| snip2DiagonalRectangle = "Snip2DiagonalRectangle" | Rectangle geometric shape: diagonal corners snipped. |
| snip2SameRectangle = "Snip2SameRectangle" | Rectangle geometric shape: top corners snipped. |
| snipRoundRectangle = "SnipRoundRectangle" | Rectangle geometric shape: top corners one rounded and one snipped. |
| squareTabs = "SquareTabs" | Four small squares that define a rectangular shape. |
| star10 = "Star10" | Star: 10 points. |
| star12 = "Star12" | Star: 12 points. |
| star16 = "Star16" | Star: 16 points. |
| star24 = "Star24" | Star: 24 points. |
| star32 = "Star32" | Star: 32 points. |
| star4 = "Star4" | Star: 4 points. |
| star5 = "Star5" | Star: 5 points. |
| star6 = "Star6" | Star: 6 points. |
| star7 = "Star7" | Star: 7 points. |
| star8 = "Star8" | Star: 8 points. |
| stripedRightArrow = "StripedRightArrow" | Arrow: striped right. |
| sun = "Sun" | Sun. |
| swooshArrow = "SwooshArrow" | Arrow: curved right arrow with varying width. |
| teardrop = "Teardrop" | Teardrop geometric shape. |
| trapezoid = "Trapezoid" | Trapezoid geometric shape. |
| triangle = "Triangle" | Isosceles triangle geometric shape. |
| upArrow = "UpArrow" | Arrow: up. |
| upArrowCallout = "UpArrowCallout" | Callout: up arrow. |
| upDownArrow = "UpDownArrow" | Arrow: up-down. |
| upDownArrowCallout = "UpDownArrowCallout" | Callout: up-down arrow. |
| uturnArrow = "UturnArrow" | Arrow: U-turn. |
| verticalScroll = "VerticalScroll" | Scroll: vertical. |
| wave = "Wave" | Wave geometric shape. |
| wedgeEllipseCallout = "WedgeEllipseCallout" | Speech bubble: oval. |
| wedgeRectCallout = "WedgeRectCallout" | Speech bubble: rectangle. |
| wedgeRRectCallout = "WedgeRRectCallout" | Speech bubble: rectangle with corners rounded. |