ShapeType enumeration

ShapeType enumeration

Specifies the type of shape in a Microsoft Word document.

Members

NameDescription
ImageThe shape is an image.
TextBoxThe shape is a textbox. Note that shapes of many other types can also have text inside them too. A shape does not have to have this type to contain text.
GroupThe shape is a group shape.
OleObjectThe shape is an OLE object. You cannot create shapes of this type in the document.
OleControlThe shape is an ActiveX control. You cannot create shapes of this type in the document.
NonPrimitiveA shape drawn by user and consisting of multiple segments and/or vertices (curve, freeform or scribble). You cannot create shapes of this type in the document.
RectangleRectangle.
RoundRectangleRound rectangle.
EllipseEllipse.
DiamondDiamond.
TriangleTriangle.
RightTriangleRight triangle.
ParallelogramParallelogram.
TrapezoidTrapezoid.
HexagonHexagon.
OctagonOctagon.
PlusPlus.
StarStar.
ArrowArrow.
ThickArrowThick arrow.
HomePlateHome plate.
CubeCube.
BalloonBalloon.
SealSeal.
ArcArc.
LineLine.
PlaquePlaque.
CanCan.
DonutDonut.
TextSimpleText simple.
TextOctagonText octagon.
TextHexagonText hexagon.
TextCurveText curve.
TextWaveText wave.
TextRingText ring.
TextOnCurveText on curve.
TextOnRingText on ring.
StraightConnector1A straight connector shape.
BentConnector2A bent connector shape with two segments.
BentConnector3A bent connector shape with three segments.
BentConnector4A bent connector shape with four segments.
BentConnector5A bent connector shape with five segments.
CurvedConnector2A curved connector shape with two segments.
CurvedConnector3A curved connector shape with three segments.
CurvedConnector4A curved connector shape with four segments.
CurvedConnector5A curved connector shape with five segments.
Callout1A callout shape with one arrow.
Callout2A callout shape with two arrows.
Callout3A callout shape with three arrows.
AccentCallout1An accent callout shape with one arrow.
AccentCallout2An accent callout shape with two arrows.
AccentCallout3An accent callout shape with three arrows.
BorderCallout1Border callout 1.
BorderCallout2Border callout 2.
BorderCallout3Border callout 3.
AccentBorderCallout1Accent border callout 1.
AccentBorderCallout2Accent border callout 2.
AccentBorderCallout3Accent border callout 3.
RibbonRibbon.
Ribbon2Ribbon 2.
ChevronChevron.
PentagonPentagon.
NoSmokingNoSmoking.
Seal8Eight-pointed star.
Seal1616-pointed star.
Seal3232-pointed star.
WedgeRectCalloutWedge rect callout.
WedgeRRectCalloutWedge R rect callout.
WedgeEllipseCalloutWedge ellipse callout.
WaveWave.
FoldedCornerFolded corner.
LeftArrowLeft arrow.
DownArrowDown arrow.
UpArrowUp arrow.
LeftRightArrowLeft right arrow.
UpDownArrowUp down arrow.
IrregularSeal1Irregular seal 1.
IrregularSeal2Irregular seal 2.
LightningBoltLightning bolt.
HeartHeart.
QuadArrowQuad arrow.
LeftArrowCalloutLeft arrow callout.
RightArrowCalloutRight arrow callout
UpArrowCalloutUp arrow callout.
DownArrowCalloutDown arrow callout.
LeftRightArrowCalloutLeft right arrow callout.
UpDownArrowCalloutUp down arrow callout.
QuadArrowCalloutQuad arrow callout.
BevelBevel.
LeftBracketLeft bracket.
RightBracketRight bracket.
LeftBraceLeft brace.
RightBraceRight brace.
LeftUpArrowLeft up arrow.
BentUpArrowBent up arrow.
BentArrowBent arrow.
Seal2424-pointed star.
StripedRightArrowStriped right arrow.
NotchedRightArrowNotched right arrow.
BlockArcBlock arc.
SmileyFaceSmiley face.
VerticalScrollVertical scroll.
HorizontalScrollHorizontal scroll.
CircularArrowCircular arrow.
CustomShapeThis shape type seems to be set for shapes that are not part of the standard set of the auto shapes in Microsoft Word. For example, if you insert a new auto shape from ClipArt. You cannot create shapes of this type in the document.
UturnArrowUturn arrow.
CurvedRightArrowCurved right arrow.
CurvedLeftArrowCurved left arrow.
CurvedUpArrowCurved up arrow
CurvedDownArrowCurved down arrow.
CloudCalloutCloud callout.
EllipseRibbonEllipse ribbon.
EllipseRibbon2Ellipse ribbon 2.
FlowChartProcessFlow chart process.
FlowChartDecisionFlow chart decision.
FlowChartInputOutputFlow chart input output.
FlowChartPredefinedProcessFlow chart predefined process
FlowChartInternalStorageFlow chart internal storage.
FlowChartDocumentFlow chart document.
FlowChartMultidocumentFlow chart multi document.
FlowChartTerminatorFlow chart terminator.
FlowChartPreparationFlow chart preparation.
FlowChartManualInputFlow chart manual input.
FlowChartManualOperationFlow chart manual operation.
FlowChartConnectorFlow chart connector.
FlowChartPunchedCardFlow chart punched card.
FlowChartPunchedTapeFlow chart punched tape.
FlowChartSummingJunctionFlow chart summing junction.
FlowChartOrFlow chart or.
FlowChartCollateFlow chart collate.
FlowChartSortFlow chart sort.
FlowChartExtractFlow chart extract.
FlowChartMergeFlow chart merge.
FlowChartOfflineStorageFlow chart off-line storage.
FlowChartOnlineStorageFlow chart on-line storage.
FlowChartMagneticTapeFlow char magnetic tape.
FlowChartMagneticDiskFlow chart magnetic disk.
FlowChartMagneticDrumFlow chart magnetic drum.
FlowChartDisplayFlow chart display.
FlowChartDelayFlow chart delay.
TextPlainTextPlain-text, WordArt object.
TextStopStop, WordArt object.
TextTriangleTriangle, WordArt object.
TextTriangleInvertedTriangle inverted, WordArt object.
TextChevronChevron, WordArt object.
TextChevronInvertedChevron inverted, WordArt object.
TextRingInsideRing inside, WordArt object.
TextRingOutsideRing outside, WordArt object.
TextArchUpCurveArch up curve, WordArt object.
TextArchDownCurveArch down curve, WordArt object.
TextCircleCurveCircle curve, WordArt object.
TextButtonCurveButton curve, WordArt object.
TextArchUpPourArch up pour, WordArt object.
TextArchDownPourArch down pour, WordArt object.
TextCirclePourCircle pour, WordArt object.
TextButtonPourButton pour, WordArt object.
TextCurveUpCurve up, WordArt object.
TextCurveDownCurve down, WordArt object.
TextCascadeUpCascade up, WordArt object.
TextCascadeDownCascade down, WordArt object.
TextWave1Wave 1, WordArt object.
TextWave2Wave 2, WordArt object.
TextWave3Wave 3, WordArt object.
TextWave4Wave 4, WordArt object.
TextInflateInflate, WordArt object.
TextDeflateDeflate, WordArt object.
TextInflateBottomInflate bottom, WordArt object.
TextDeflateBottomDeflate bottom, WordArt object.
TextInflateTopInflate top, WordArt object.
TextDeflateTopDeflate top, WordArt object.
TextDeflateInflateDeflate inflate, WordArt object.
TextDeflateInflateDeflateDeflate inflate deflate, WordArt object.
TextFadeRightFade right, WordArt object.
TextFadeLeftFade left, WordArt object.
TextFadeUpFade up, WordArt object.
TextFadeDownFade down, WordArt object.
TextSlantUpSlant up, WordArt object.
TextSlantDownSlant down, WordArt object.
TextCanUpCan up, WordArt object.
TextCanDownCan down, WordArt object.
FlowChartAlternateProcessFlow chart alternate process.
FlowChartOffpageConnectorFlow chart off page connector.
Callout90Callout 90.
AccentCallout90Accent callout 90.
BorderCallout90Border callout 90.
AccentBorderCallout90Accent border callout 90.
LeftRightUpArrowLeft right up arrow.
SunSun.
MoonMoon.
BracketPairBracket pair.
BracePairBrace pair
Seal4Four-pointed star.
DoubleWaveDouble wave.
ActionButtonBlankAction button blank.
ActionButtonHomeAction button home.
ActionButtonHelpAction button help.
ActionButtonInformationAction button information.
ActionButtonForwardNextAction button forward next.
ActionButtonBackPreviousAction button back previous.
ActionButtonEndAction button end.
ActionButtonBeginningAction button beginning.
ActionButtonReturnAction button return.
ActionButtonDocumentAction button document.
ActionButtonSoundAction button sound.
ActionButtonMovieAction button movie.
SingleCornerSnippedSnip single corner rectangle object.
TopCornersSnippedSnip same side corner rectangle.
DiagonalCornersSnippedSnip diagonal corner rectangle.
TopCornersOneRoundedOneSnippedSnip and round single corner rectangle.
SingleCornerRoundedRound single corner rectangle.
TopCornersRoundedRound same side corner rectangle.
DiagonalCornersRoundedRound diagonal corner rectangle.
HeptagonHeptagon.
CloudCloud.
Seal6Six-pointed star.
Seal7Seven-pointed star.
Seal10Ten-pointed star.
Seal12Twelve-pointed star.
SwooshArrowSwoosh arrow.
TeardropTeardrop.
SquareTabsSquare tabs.
PlaqueTabsPlaque tabs.
PiePie.
WedgePieWedge pie.
InverseLineInverse line.
MathPlusMath plus.
MathMinusMath minus.
MathMultiplyMath multiply.
MathDivideMath divide.
MathEqualMath equal.
MathNotEqualMath not equal.
NonIsoscelesTrapezoidNon-isosceles trapezoid.
LeftRightCircularArrowLeft-right circular arrow.
LeftRightRibbonLeft-right ribbon.
LeftCircularArrowLeft circular arrow.
FrameFrame.
HalfFrameHalf frame.
FunnelFunnel.
Gear6Six-tooth gear.
Gear9Nine-tooth gear.
DecagonDecagon.
DodecagonDodecagon.
DiagonalStripeDiagonal stripe.
CornerCorner.
CornerTabsCorner tabs.
ChordChord.
ChartPlusChart plus.
ChartStarChart star.
ChartXChart X.
MinValueReserved for the system use.

Examples

Shows how to insert a shape with an image from the local file system into a document.

let doc = new aw.Document();

// The "Shape" class's public constructor will create a shape with "ShapeMarkupLanguage.Vml" markup type.
// If you need to create a shape of a non-primitive type, such as SingleCornerSnipped, TopCornersSnipped, DiagonalCornersSnipped,
// TopCornersOneRoundedOneSnipped, SingleCornerRounded, TopCornersRounded, or DiagonalCornersRounded,
// please use DocumentBuilder.insertShape.
let shape = new aw.Drawing.Shape(doc, aw.Drawing.ShapeType.Image);
shape.imageData.setImage(base.imageDir + "Windows MetaFile.wmf");
shape.width = 100;
shape.height = 100;

doc.firstSection.body.firstParagraph.appendChild(shape);

doc.save(base.artifactsDir + "Image.FromFile.docx");

See Also