ShapeType Enumeration
Specifies the type of shape in a Microsoft Word document.

Namespace: Aspose.Words.Drawing
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.11
Syntax
public enum ShapeType
Members
  Member nameValueDescription
Image75 The shape is an image.
TextBox202 The 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.
Group-1

The shape is a group shape.

OleObject-2 The shape is an OLE object.

You cannot create shapes of this type in the document.

OleControl201 The shape is an ActiveX control.

You cannot create shapes of this type in the document.

NonPrimitive0 A 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.

Rectangle1
RoundRectangle2
Ellipse3
Diamond4
Triangle5
RightTriangle6
Parallelogram7
Trapezoid8
Hexagon9
Octagon10
Plus11
Star12
Arrow13
ThickArrow14
HomePlate15
Cube16
Balloon17
Seal18
Arc19
Line20
Plaque21
Can22
Donut23
TextSimple24
TextOctagon25
TextHexagon26
TextCurve27
TextWave28
TextRing29
TextOnCurve30
TextOnRing31
StraightConnector132
BentConnector233
BentConnector334
BentConnector435
BentConnector536
CurvedConnector237
CurvedConnector338
CurvedConnector439
CurvedConnector540
Callout141
Callout242
Callout343
AccentCallout144
AccentCallout245
AccentCallout346
BorderCallout147
BorderCallout248
BorderCallout349
AccentBorderCallout150
AccentBorderCallout251
AccentBorderCallout352
Ribbon53
Ribbon254
Chevron55
Pentagon56
NoSmoking57
Seal858
Seal1659
Seal3260
WedgeRectCallout61
WedgeRRectCallout62
WedgeEllipseCallout63
Wave64
FoldedCorner65
LeftArrow66
DownArrow67
UpArrow68
LeftRightArrow69
UpDownArrow70
IrregularSeal171
IrregularSeal272
LightningBolt73
Heart74
QuadArrow76
LeftArrowCallout77
RightArrowCallout78
UpArrowCallout79
DownArrowCallout80
LeftRightArrowCallout81
UpDownArrowCallout82
QuadArrowCallout83
Bevel84
LeftBracket85
RightBracket86
LeftBrace87
RightBrace88
LeftUpArrow89
BentUpArrow90
BentArrow91
Seal2492
StripedRightArrow93
NotchedRightArrow94
BlockArc95
SmileyFace96
VerticalScroll97
HorizontalScroll98
CircularArrow99
CustomShape100 This 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.

UturnArrow101
CurvedRightArrow102
CurvedLeftArrow103
CurvedUpArrow104
CurvedDownArrow105
CloudCallout106
EllipseRibbon107
EllipseRibbon2108
FlowChartProcess109
FlowChartDecision110
FlowChartInputOutput111
FlowChartPredefinedProcess112
FlowChartInternalStorage113
FlowChartDocument114
FlowChartMultidocument115
FlowChartTerminator116
FlowChartPreparation117
FlowChartManualInput118
FlowChartManualOperation119
FlowChartConnector120
FlowChartPunchedCard121
FlowChartPunchedTape122
FlowChartSummingJunction123
FlowChartOr124
FlowChartCollate125
FlowChartSort126
FlowChartExtract127
FlowChartMerge128
FlowChartOfflineStorage129
FlowChartOnlineStorage130
FlowChartMagneticTape131
FlowChartMagneticDisk132
FlowChartMagneticDrum133
FlowChartDisplay134
FlowChartDelay135
TextPlainText136 WordArt object.
TextStop137 WordArt object.
TextTriangle138 WordArt object.
TextTriangleInverted139 WordArt object.
TextChevron140 WordArt object.
TextChevronInverted141 WordArt object.
TextRingInside142 WordArt object.
TextRingOutside143 WordArt object.
TextArchUpCurve144 WordArt object.
TextArchDownCurve145 WordArt object.
TextCircleCurve146 WordArt object.
TextButtonCurve147 WordArt object.
TextArchUpPour148 WordArt object.
TextArchDownPour149 WordArt object.
TextCirclePour150 WordArt object.
TextButtonPour151 WordArt object.
TextCurveUp152 WordArt object.
TextCurveDown153 WordArt object.
TextCascadeUp154 WordArt object.
TextCascadeDown155 WordArt object.
TextWave1156 WordArt object.
TextWave2157 WordArt object.
TextWave3158 WordArt object.
TextWave4159 WordArt object.
TextInflate160 WordArt object.
TextDeflate161 WordArt object.
TextInflateBottom162 WordArt object.
TextDeflateBottom163 WordArt object.
TextInflateTop164 WordArt object.
TextDeflateTop165 WordArt object.
TextDeflateInflate166 WordArt object.
TextDeflateInflateDeflate167 WordArt object.
TextFadeRight168 WordArt object.
TextFadeLeft169 WordArt object.
TextFadeUp170 WordArt object.
TextFadeDown171 WordArt object.
TextSlantUp172 WordArt object.
TextSlantDown173 WordArt object.
TextCanUp174 WordArt object.
TextCanDown175 WordArt object.
FlowChartAlternateProcess176
FlowChartOffpageConnector177
Callout90178
AccentCallout90179
BorderCallout90180
AccentBorderCallout90181
LeftRightUpArrow182
Sun183
Moon184
BracketPair185
BracePair186
Seal4187
DoubleWave188
ActionButtonBlank189
ActionButtonHome190
ActionButtonHelp191
ActionButtonInformation192
ActionButtonForwardNext193
ActionButtonBackPrevious194
ActionButtonEnd195
ActionButtonBeginning196
ActionButtonReturn197
ActionButtonDocument198
ActionButtonSound199
ActionButtonMovie200
SingleCornerSnipped203 Snip single corner rectangle object.
TopCornersSnipped204 Snip same side corner rectangle.
DiagonalCornersSnipped205 Snip diagonal corner rectangle.
TopCornersOneRoundedOneSnipped206 Snip and round single corner rectangle.
SingleCornerRounded207 Round single corner rectangle.
TopCornersRounded208 Round same side corner rectangle.
DiagonalCornersRounded209 Round diagonal corner rectangle.
MinValue-2 Reserved for the system use.
Remarks
Examples
Shows how to create shape and add an image to a document without using a document builder.
Document doc = new Document();

// Public constructor of "Shape" class creates shape with "ShapeMarkupLanguage.Vml" markup type
// If you need to create "NonPrimitive" shapes, like SingleCornerSnipped, TopCornersSnipped, DiagonalCornersSnipped,
// TopCornersOneRoundedOneSnipped, SingleCornerRounded, TopCornersRounded, DiagonalCornersRounded
// please use DocumentBuilder.InsertShape methods
Shape shape = new Shape(doc, ShapeType.Image);
shape.ImageData.SetImage(MyDir + "Images/Hammer.wmf");
shape.Width = 100;
shape.Height = 100;

doc.FirstSection.Body.FirstParagraph.AppendChild(shape);

doc.Save(ArtifactsDir + "Image.CreateImageDirectly.doc");
See Also