Specifies the type of shape in a Microsoft Word document.
[Visual Basic]
Public Enum ShapeType
[C#]public enum ShapeType
Remarks
Example
Shows how to create and add an image to a document without using document builder.
[C#]
Document doc = new Document();
Shape shape = new Shape(doc, ShapeType.Image);
shape.ImageData.SetImage(MyDir + "Hammer.wmf");
shape.Width = 100;
shape.Height = 100;
doc.FirstSection.Body.FirstParagraph.AppendChild(shape);
doc.Save(MyDir + "Image.CreateImageDirectly Out.doc");
[Visual Basic]
Dim doc As Document = New Document()
Dim shape As Shape = New Shape(doc, ShapeType.Image)
shape.ImageData.SetImage(MyDir & "Hammer.wmf")
shape.Width = 100
shape.Height = 100
doc.FirstSection.Body.FirstParagraph.AppendChild(shape)
doc.Save(MyDir & "Image.CreateImageDirectly Out.doc")
Members
| Member Name | Description | Value |
| Image | The shape is an image. | 75 |
| TextBox | 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. | 202 |
| Group |
The shape is a group shape.
| -1 |
| OleObject | The shape is an OLE object. You cannot create shapes of this type in the document. | -2 |
| OleControl | The shape is an ActiveX control. You cannot create shapes of this type in the document. | 201 |
| NonPrimitive | 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. | 0 |
| Rectangle |
| 1 |
| RoundRectangle |
| 2 |
| Ellipse |
| 3 |
| Diamond |
| 4 |
| Triangle |
| 5 |
| RightTriangle |
| 6 |
| Parallelogram |
| 7 |
| Trapezoid |
| 8 |
| Hexagon |
| 9 |
| Octagon |
| 10 |
| Plus |
| 11 |
| Star |
| 12 |
| Arrow |
| 13 |
| ThickArrow |
| 14 |
| HomePlate |
| 15 |
| Cube |
| 16 |
| Balloon |
| 17 |
| Seal |
| 18 |
| Arc |
| 19 |
| Line |
| 20 |
| Plaque |
| 21 |
| Can |
| 22 |
| Donut |
| 23 |
| TextSimple |
| 24 |
| TextOctagon |
| 25 |
| TextHexagon |
| 26 |
| TextCurve |
| 27 |
| TextWave |
| 28 |
| TextRing |
| 29 |
| TextOnCurve |
| 30 |
| TextOnRing |
| 31 |
| StraightConnector1 |
| 32 |
| BentConnector2 |
| 33 |
| BentConnector3 |
| 34 |
| BentConnector4 |
| 35 |
| BentConnector5 |
| 36 |
| CurvedConnector2 |
| 37 |
| CurvedConnector3 |
| 38 |
| CurvedConnector4 |
| 39 |
| CurvedConnector5 |
| 40 |
| Callout1 |
| 41 |
| Callout2 |
| 42 |
| Callout3 |
| 43 |
| AccentCallout1 |
| 44 |
| AccentCallout2 |
| 45 |
| AccentCallout3 |
| 46 |
| BorderCallout1 |
| 47 |
| BorderCallout2 |
| 48 |
| BorderCallout3 |
| 49 |
| AccentBorderCallout1 |
| 50 |
| AccentBorderCallout2 |
| 51 |
| AccentBorderCallout3 |
| 52 |
| Ribbon |
| 53 |
| Ribbon2 |
| 54 |
| Chevron |
| 55 |
| Pentagon |
| 56 |
| NoSmoking |
| 57 |
| Seal8 |
| 58 |
| Seal16 |
| 59 |
| Seal32 |
| 60 |
| WedgeRectCallout |
| 61 |
| WedgeRRectCallout |
| 62 |
| WedgeEllipseCallout |
| 63 |
| Wave |
| 64 |
| FoldedCorner |
| 65 |
| LeftArrow |
| 66 |
| DownArrow |
| 67 |
| UpArrow |
| 68 |
| LeftRightArrow |
| 69 |
| UpDownArrow |
| 70 |
| IrregularSeal1 |
| 71 |
| IrregularSeal2 |
| 72 |
| LightningBolt |
| 73 |
| Heart |
| 74 |
| QuadArrow |
| 76 |
| LeftArrowCallout |
| 77 |
| RightArrowCallout |
| 78 |
| UpArrowCallout |
| 79 |
| DownArrowCallout |
| 80 |
| LeftRightArrowCallout |
| 81 |
| UpDownArrowCallout |
| 82 |
| QuadArrowCallout |
| 83 |
| Bevel |
| 84 |
| LeftBracket |
| 85 |
| RightBracket |
| 86 |
| LeftBrace |
| 87 |
| RightBrace |
| 88 |
| LeftUpArrow |
| 89 |
| BentUpArrow |
| 90 |
| BentArrow |
| 91 |
| Seal24 |
| 92 |
| StripedRightArrow |
| 93 |
| NotchedRightArrow |
| 94 |
| BlockArc |
| 95 |
| SmileyFace |
| 96 |
| VerticalScroll |
| 97 |
| HorizontalScroll |
| 98 |
| CircularArrow |
| 99 |
| CustomShape | 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. | 100 |
| UturnArrow |
| 101 |
| CurvedRightArrow |
| 102 |
| CurvedLeftArrow |
| 103 |
| CurvedUpArrow |
| 104 |
| CurvedDownArrow |
| 105 |
| CloudCallout |
| 106 |
| EllipseRibbon |
| 107 |
| EllipseRibbon2 |
| 108 |
| FlowChartProcess |
| 109 |
| FlowChartDecision |
| 110 |
| FlowChartInputOutput |
| 111 |
| FlowChartPredefinedProcess |
| 112 |
| FlowChartInternalStorage |
| 113 |
| FlowChartDocument |
| 114 |
| FlowChartMultidocument |
| 115 |
| FlowChartTerminator |
| 116 |
| FlowChartPreparation |
| 117 |
| FlowChartManualInput |
| 118 |
| FlowChartManualOperation |
| 119 |
| FlowChartConnector |
| 120 |
| FlowChartPunchedCard |
| 121 |
| FlowChartPunchedTape |
| 122 |
| FlowChartSummingJunction |
| 123 |
| FlowChartOr |
| 124 |
| FlowChartCollate |
| 125 |
| FlowChartSort |
| 126 |
| FlowChartExtract |
| 127 |
| FlowChartMerge |
| 128 |
| FlowChartOfflineStorage |
| 129 |
| FlowChartOnlineStorage |
| 130 |
| FlowChartMagneticTape |
| 131 |
| FlowChartMagneticDisk |
| 132 |
| FlowChartMagneticDrum |
| 133 |
| FlowChartDisplay |
| 134 |
| FlowChartDelay |
| 135 |
| TextPlainText | WordArt object. | 136 |
| TextStop | WordArt object. | 137 |
| TextTriangle | WordArt object. | 138 |
| TextTriangleInverted | WordArt object. | 139 |
| TextChevron | WordArt object. | 140 |
| TextChevronInverted | WordArt object. | 141 |
| TextRingInside | WordArt object. | 142 |
| TextRingOutside | WordArt object. | 143 |
| TextArchUpCurve | WordArt object. | 144 |
| TextArchDownCurve | WordArt object. | 145 |
| TextCircleCurve | WordArt object. | 146 |
| TextButtonCurve | WordArt object. | 147 |
| TextArchUpPour | WordArt object. | 148 |
| TextArchDownPour | WordArt object. | 149 |
| TextCirclePour | WordArt object. | 150 |
| TextButtonPour | WordArt object. | 151 |
| TextCurveUp | WordArt object. | 152 |
| TextCurveDown | WordArt object. | 153 |
| TextCascadeUp | WordArt object. | 154 |
| TextCascadeDown | WordArt object. | 155 |
| TextWave1 | WordArt object. | 156 |
| TextWave2 | WordArt object. | 157 |
| TextWave3 | WordArt object. | 158 |
| TextWave4 | WordArt object. | 159 |
| TextInflate | WordArt object. | 160 |
| TextDeflate | WordArt object. | 161 |
| TextInflateBottom | WordArt object. | 162 |
| TextDeflateBottom | WordArt object. | 163 |
| TextInflateTop | WordArt object. | 164 |
| TextDeflateTop | WordArt object. | 165 |
| TextDeflateInflate | WordArt object. | 166 |
| TextDeflateInflateDeflate | WordArt object. | 167 |
| TextFadeRight | WordArt object. | 168 |
| TextFadeLeft | WordArt object. | 169 |
| TextFadeUp | WordArt object. | 170 |
| TextFadeDown | WordArt object. | 171 |
| TextSlantUp | WordArt object. | 172 |
| TextSlantDown | WordArt object. | 173 |
| TextCanUp | WordArt object. | 174 |
| TextCanDown | WordArt object. | 175 |
| FlowChartAlternateProcess |
| 176 |
| FlowChartOffpageConnector |
| 177 |
| Callout90 |
| 178 |
| AccentCallout90 |
| 179 |
| BorderCallout90 |
| 180 |
| AccentBorderCallout90 |
| 181 |
| LeftRightUpArrow |
| 182 |
| Sun |
| 183 |
| Moon |
| 184 |
| BracketPair |
| 185 |
| BracePair |
| 186 |
| Seal4 |
| 187 |
| DoubleWave |
| 188 |
| ActionButtonBlank |
| 189 |
| ActionButtonHome |
| 190 |
| ActionButtonHelp |
| 191 |
| ActionButtonInformation |
| 192 |
| ActionButtonForwardNext |
| 193 |
| ActionButtonBackPrevious |
| 194 |
| ActionButtonEnd |
| 195 |
| ActionButtonBeginning |
| 196 |
| ActionButtonReturn |
| 197 |
| ActionButtonDocument |
| 198 |
| ActionButtonSound |
| 199 |
| ActionButtonMovie |
| 200 |
Requirements
Namespace: Aspose.Words.Drawing
Assembly: Aspose.Words (in Aspose.Words.dll)
See Also
Aspose.Words.Drawing Namespace | ShapeType