ShapeType enumeration
ShapeType enumeration
Specifies the type of shape in a Microsoft Word document.
Members
Name | Description |
---|---|
Image | The shape is an image. |
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. |
Group | The shape is a group shape. |
OleObject | The shape is an OLE object. You cannot create shapes of this type in the document. |
OleControl | The shape is an ActiveX control. You cannot create shapes of this type in the document. |
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. |
Rectangle | Rectangle. |
RoundRectangle | Round rectangle. |
Ellipse | Ellipse. |
Diamond | Diamond. |
Triangle | Triangle. |
RightTriangle | Right triangle. |
Parallelogram | Parallelogram. |
Trapezoid | Trapezoid. |
Hexagon | Hexagon. |
Octagon | Octagon. |
Plus | Plus. |
Star | Star. |
Arrow | Arrow. |
ThickArrow | Thick arrow. |
HomePlate | Home plate. |
Cube | Cube. |
Balloon | Balloon. |
Seal | Seal. |
Arc | Arc. |
Line | Line. |
Plaque | Plaque. |
Can | Can. |
Donut | Donut. |
TextSimple | Text simple. |
TextOctagon | Text octagon. |
TextHexagon | Text hexagon. |
TextCurve | Text curve. |
TextWave | Text wave. |
TextRing | Text ring. |
TextOnCurve | Text on curve. |
TextOnRing | Text on ring. |
StraightConnector1 | A straight connector shape. |
BentConnector2 | A bent connector shape with two segments. |
BentConnector3 | A bent connector shape with three segments. |
BentConnector4 | A bent connector shape with four segments. |
BentConnector5 | A bent connector shape with five segments. |
CurvedConnector2 | A curved connector shape with two segments. |
CurvedConnector3 | A curved connector shape with three segments. |
CurvedConnector4 | A curved connector shape with four segments. |
CurvedConnector5 | A curved connector shape with five segments. |
Callout1 | A callout shape with one arrow. |
Callout2 | A callout shape with two arrows. |
Callout3 | A callout shape with three arrows. |
AccentCallout1 | An accent callout shape with one arrow. |
AccentCallout2 | An accent callout shape with two arrows. |
AccentCallout3 | An accent callout shape with three arrows. |
BorderCallout1 | Border callout 1. |
BorderCallout2 | Border callout 2. |
BorderCallout3 | Border callout 3. |
AccentBorderCallout1 | Accent border callout 1. |
AccentBorderCallout2 | Accent border callout 2. |
AccentBorderCallout3 | Accent border callout 3. |
Ribbon | Ribbon. |
Ribbon2 | Ribbon 2. |
Chevron | Chevron. |
Pentagon | Pentagon. |
NoSmoking | NoSmoking. |
Seal8 | Eight-pointed star. |
Seal16 | 16-pointed star. |
Seal32 | 32-pointed star. |
WedgeRectCallout | Wedge rect callout. |
WedgeRRectCallout | Wedge R rect callout. |
WedgeEllipseCallout | Wedge ellipse callout. |
Wave | Wave. |
FoldedCorner | Folded corner. |
LeftArrow | Left arrow. |
DownArrow | Down arrow. |
UpArrow | Up arrow. |
LeftRightArrow | Left right arrow. |
UpDownArrow | Up down arrow. |
IrregularSeal1 | Irregular seal 1. |
IrregularSeal2 | Irregular seal 2. |
LightningBolt | Lightning bolt. |
Heart | Heart. |
QuadArrow | Quad arrow. |
LeftArrowCallout | Left arrow callout. |
RightArrowCallout | Right arrow callout |
UpArrowCallout | Up arrow callout. |
DownArrowCallout | Down arrow callout. |
LeftRightArrowCallout | Left right arrow callout. |
UpDownArrowCallout | Up down arrow callout. |
QuadArrowCallout | Quad arrow callout. |
Bevel | Bevel. |
LeftBracket | Left bracket. |
RightBracket | Right bracket. |
LeftBrace | Left brace. |
RightBrace | Right brace. |
LeftUpArrow | Left up arrow. |
BentUpArrow | Bent up arrow. |
BentArrow | Bent arrow. |
Seal24 | 24-pointed star. |
StripedRightArrow | Striped right arrow. |
NotchedRightArrow | Notched right arrow. |
BlockArc | Block arc. |
SmileyFace | Smiley face. |
VerticalScroll | Vertical scroll. |
HorizontalScroll | Horizontal scroll. |
CircularArrow | Circular arrow. |
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. |
UturnArrow | Uturn arrow. |
CurvedRightArrow | Curved right arrow. |
CurvedLeftArrow | Curved left arrow. |
CurvedUpArrow | Curved up arrow |
CurvedDownArrow | Curved down arrow. |
CloudCallout | Cloud callout. |
EllipseRibbon | Ellipse ribbon. |
EllipseRibbon2 | Ellipse ribbon 2. |
FlowChartProcess | Flow chart process. |
FlowChartDecision | Flow chart decision. |
FlowChartInputOutput | Flow chart input output. |
FlowChartPredefinedProcess | Flow chart predefined process |
FlowChartInternalStorage | Flow chart internal storage. |
FlowChartDocument | Flow chart document. |
FlowChartMultidocument | Flow chart multi document. |
FlowChartTerminator | Flow chart terminator. |
FlowChartPreparation | Flow chart preparation. |
FlowChartManualInput | Flow chart manual input. |
FlowChartManualOperation | Flow chart manual operation. |
FlowChartConnector | Flow chart connector. |
FlowChartPunchedCard | Flow chart punched card. |
FlowChartPunchedTape | Flow chart punched tape. |
FlowChartSummingJunction | Flow chart summing junction. |
FlowChartOr | Flow chart or. |
FlowChartCollate | Flow chart collate. |
FlowChartSort | Flow chart sort. |
FlowChartExtract | Flow chart extract. |
FlowChartMerge | Flow chart merge. |
FlowChartOfflineStorage | Flow chart off-line storage. |
FlowChartOnlineStorage | Flow chart on-line storage. |
FlowChartMagneticTape | Flow char magnetic tape. |
FlowChartMagneticDisk | Flow chart magnetic disk. |
FlowChartMagneticDrum | Flow chart magnetic drum. |
FlowChartDisplay | Flow chart display. |
FlowChartDelay | Flow chart delay. |
TextPlainText | Plain-text, WordArt object. |
TextStop | Stop, WordArt object. |
TextTriangle | Triangle, WordArt object. |
TextTriangleInverted | Triangle inverted, WordArt object. |
TextChevron | Chevron, WordArt object. |
TextChevronInverted | Chevron inverted, WordArt object. |
TextRingInside | Ring inside, WordArt object. |
TextRingOutside | Ring outside, WordArt object. |
TextArchUpCurve | Arch up curve, WordArt object. |
TextArchDownCurve | Arch down curve, WordArt object. |
TextCircleCurve | Circle curve, WordArt object. |
TextButtonCurve | Button curve, WordArt object. |
TextArchUpPour | Arch up pour, WordArt object. |
TextArchDownPour | Arch down pour, WordArt object. |
TextCirclePour | Circle pour, WordArt object. |
TextButtonPour | Button pour, WordArt object. |
TextCurveUp | Curve up, WordArt object. |
TextCurveDown | Curve down, WordArt object. |
TextCascadeUp | Cascade up, WordArt object. |
TextCascadeDown | Cascade down, WordArt object. |
TextWave1 | Wave 1, WordArt object. |
TextWave2 | Wave 2, WordArt object. |
TextWave3 | Wave 3, WordArt object. |
TextWave4 | Wave 4, WordArt object. |
TextInflate | Inflate, WordArt object. |
TextDeflate | Deflate, WordArt object. |
TextInflateBottom | Inflate bottom, WordArt object. |
TextDeflateBottom | Deflate bottom, WordArt object. |
TextInflateTop | Inflate top, WordArt object. |
TextDeflateTop | Deflate top, WordArt object. |
TextDeflateInflate | Deflate inflate, WordArt object. |
TextDeflateInflateDeflate | Deflate inflate deflate, WordArt object. |
TextFadeRight | Fade right, WordArt object. |
TextFadeLeft | Fade left, WordArt object. |
TextFadeUp | Fade up, WordArt object. |
TextFadeDown | Fade down, WordArt object. |
TextSlantUp | Slant up, WordArt object. |
TextSlantDown | Slant down, WordArt object. |
TextCanUp | Can up, WordArt object. |
TextCanDown | Can down, WordArt object. |
FlowChartAlternateProcess | Flow chart alternate process. |
FlowChartOffpageConnector | Flow chart off page connector. |
Callout90 | Callout 90. |
AccentCallout90 | Accent callout 90. |
BorderCallout90 | Border callout 90. |
AccentBorderCallout90 | Accent border callout 90. |
LeftRightUpArrow | Left right up arrow. |
Sun | Sun. |
Moon | Moon. |
BracketPair | Bracket pair. |
BracePair | Brace pair |
Seal4 | Four-pointed star. |
DoubleWave | Double wave. |
ActionButtonBlank | Action button blank. |
ActionButtonHome | Action button home. |
ActionButtonHelp | Action button help. |
ActionButtonInformation | Action button information. |
ActionButtonForwardNext | Action button forward next. |
ActionButtonBackPrevious | Action button back previous. |
ActionButtonEnd | Action button end. |
ActionButtonBeginning | Action button beginning. |
ActionButtonReturn | Action button return. |
ActionButtonDocument | Action button document. |
ActionButtonSound | Action button sound. |
ActionButtonMovie | Action button movie. |
SingleCornerSnipped | Snip single corner rectangle object. |
TopCornersSnipped | Snip same side corner rectangle. |
DiagonalCornersSnipped | Snip diagonal corner rectangle. |
TopCornersOneRoundedOneSnipped | Snip and round single corner rectangle. |
SingleCornerRounded | Round single corner rectangle. |
TopCornersRounded | Round same side corner rectangle. |
DiagonalCornersRounded | Round diagonal corner rectangle. |
Heptagon | Heptagon. |
Cloud | Cloud. |
Seal6 | Six-pointed star. |
Seal7 | Seven-pointed star. |
Seal10 | Ten-pointed star. |
Seal12 | Twelve-pointed star. |
SwooshArrow | Swoosh arrow. |
Teardrop | Teardrop. |
SquareTabs | Square tabs. |
PlaqueTabs | Plaque tabs. |
Pie | Pie. |
WedgePie | Wedge pie. |
InverseLine | Inverse line. |
MathPlus | Math plus. |
MathMinus | Math minus. |
MathMultiply | Math multiply. |
MathDivide | Math divide. |
MathEqual | Math equal. |
MathNotEqual | Math not equal. |
NonIsoscelesTrapezoid | Non-isosceles trapezoid. |
LeftRightCircularArrow | Left-right circular arrow. |
LeftRightRibbon | Left-right ribbon. |
LeftCircularArrow | Left circular arrow. |
Frame | Frame. |
HalfFrame | Half frame. |
Funnel | Funnel. |
Gear6 | Six-tooth gear. |
Gear9 | Nine-tooth gear. |
Decagon | Decagon. |
Dodecagon | Dodecagon. |
DiagonalStripe | Diagonal stripe. |
Corner | Corner. |
CornerTabs | Corner tabs. |
Chord | Chord. |
ChartPlus | Chart plus. |
ChartStar | Chart star. |
ChartX | Chart X. |
MinValue | Reserved 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
- module Aspose.Words.Drawing
- property ShapeBase.shapeType