Enum AutoShapeType
AutoShapeType enumeration
Represents all built-in auto shape type.
public enum AutoShapeType
Values
Name | Value | Description |
---|---|---|
NotPrimitive | 0 | |
Rectangle | 1 | |
RoundedRectangle | 2 | |
Oval | 3 | |
Diamond | 4 | |
IsoscelesTriangle | 5 | |
RightTriangle | 6 | |
Parallelogram | 7 | |
Trapezoid | 8 | |
Hexagon | 9 | |
Octagon | 10 | |
Cross | 11 | |
Star5 | 12 | |
RightArrow | 13 | |
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 | |
msosptTextOnRing | 31 | |
StraightConnector | 32 | |
BentConnector2 | 33 | |
ElbowConnector | 34 | |
BentConnector4 | 35 | |
BentConnector5 | 36 | |
CurvedConnector2 | 37 | |
CurvedConnector | 38 | |
CurvedConnector4 | 39 | |
CurvedConnector5 | 40 | |
LineCalloutNoBorder2 | 41 | |
LineCalloutNoBorder3 | 42 | |
LineCalloutNoBorder4 | 43 | |
LineCalloutWithAccentBar2 | 44 | |
LineCalloutWithAccentBar3 | 45 | |
LineCalloutWithAccentBar4 | 46 | |
LineCalloutWithBorder2 | 47 | |
LineCalloutWithBorder3 | 48 | |
LineCalloutWithBorder4 | 49 | |
LineCalloutWithBorderAndAccentBar2 | 50 | |
LineCalloutWithBorderAndAccentBar3 | 51 | |
LineCalloutWithBorderAndAccentBar4 | 52 | |
DownRibbon | 53 | |
UpRibbon | 54 | |
Chevron | 55 | |
RegularPentagon | 56 | |
NoSymbol | 57 | |
Star8 | 58 | |
Star16 | 59 | |
Star32 | 60 | |
RectangularCallout | 61 | |
RoundedRectangularCallout | 62 | |
OvalCallout | 63 | |
Wave | 64 | |
FoldedCorner | 65 | |
LeftArrow | 66 | |
DownArrow | 67 | |
UpArrow | 68 | |
LeftRightArrow | 69 | |
UpDownArrow | 70 | |
Explosion1 | 71 | |
Explosion2 | 72 | |
LightningBolt | 73 | |
Heart | 74 | |
PictureFrame | 75 | |
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 | |
Star24 | 92 | |
StripedRightArrow | 93 | |
NotchedRightArrow | 94 | |
BlockArc | 95 | |
SmileyFace | 96 | |
VerticalScroll | 97 | |
HorizontalScroll | 98 | |
CircularArrow | 99 | |
NotchedCircularArrow | 100 | A value that SHOULD NOT be used. |
UTurnArrow | 101 | |
CurvedRightArrow | 102 | |
CurvedLeftArrow | 103 | |
CurvedUpArrow | 104 | |
CurvedDownArrow | 105 | |
CloudCallout | 106 | |
CurvedDownRibbon | 107 | |
CurvedUpRibbon | 108 | |
FlowChartProcess | 109 | |
FlowChartDecision | 110 | |
FlowChartData | 111 | |
FlowChartPredefinedProcess | 112 | |
FlowChartInternalStorage | 113 | |
FlowChartDocument | 114 | |
FlowChartMultidocument | 115 | |
FlowChartTerminator | 116 | |
FlowChartPreparation | 117 | |
FlowChartManualInput | 118 | |
FlowChartManualOperation | 119 | |
FlowChartConnector | 120 | |
FlowChartCard | 121 | |
FlowChartPunchedTape | 122 | |
FlowChartSummingJunction | 123 | |
FlowChartOr | 124 | |
FlowChartCollate | 125 | |
FlowChartSort | 126 | |
FlowChartExtract | 127 | |
FlowChartMerge | 128 | |
FlowChartOfflineStorage | 129 | |
FlowChartStoredData | 130 | |
FlowChartSequentialAccessStorage | 131 | |
FlowChartMagneticDisk | 132 | |
FlowChartDirectAccessStorage | 133 | |
FlowChartDisplay | 134 | |
FlowChartDelay | 135 | |
TextPlainText | 136 | A plain text shape. |
TextStop | 137 | An octagonal text shape. |
TextTriangle | 138 | A triangular text shape pointing upwards. |
TextTriangleInverted | 139 | A triangular text shape pointing downwards. |
TextChevron | 140 | A chevron text shape pointing upwards. |
TextChevronInverted | 141 | A chevron text shape pointing downwards. |
TextRingInside | 142 | A circular text shape, as if reading an inscription on the inside of a ring. |
TextRingOutside | 143 | A circular text shape, as if reading an inscription on the outside of a ring. |
TextArchUpCurve | 144 | An upward arching curved text shape. |
TextArchDownCurve | 145 | A downward arching curved text shape. |
TextCircleCurve | 146 | A circular text shape. |
TextButtonCurve | 147 | A text shape that resembles a button. |
TextArchUpPour | 148 | An upward arching text shape. |
TextArchDownPour | 149 | A downward arching text shape. |
TextCirclePour | 150 | A circular text shape. |
TextButtonPour | 151 | A text shape that resembles a button. |
TextCurveUp | 152 | An upward curving text shape. |
TextCurveDown | 153 | A downward curving text shape. |
TextCascadeUp | 154 | A cascading text shape pointed upwards. |
TextCascadeDown | 155 | A cascading text shape pointed downwards. |
TextWave1 | 156 | A wavy text shape. |
TextWave2 | 157 | A wavy text shape. |
TextDoubleWave1 | 158 | A wavy text shape. |
TextDoubleWave2 | 159 | A wavy text shape. |
TextInflate | 160 | A text shape that expands vertically in the middle. |
TextDeflate | 161 | A text shape that shrinks vertically in the middle. |
TextInflateBottom | 162 | A text shape that expands downward in the middle. |
TextDeflateBottom | 163 | A text shape that shrinks upwards in the middle. |
TextInflateTop | 164 | A text shape that expands upward in the middle. |
TextDeflateTop | 165 | A text shape that shrinks downward in the middle. |
TextDeflateInflate | 166 | A text shape where lower lines expand upward. Upper lines shrink to compensate. |
TextDeflateInflateDeflate | 167 | A text shape where lines in the center expand vertically. Upper and lower lines shrink to compensate. |
TextFadeRight | 168 | A text shape that shrinks vertically on the right side. |
TextFadeLeft | 169 | A text shape that shrinks vertically on the left side. |
TextFadeUp | 170 | A text shape that shrinks horizontally on top. |
TextFadeDown | 171 | A text shape that shrinks horizontally on bottom. |
TextSlantUp | 172 | An upward slanted text shape. |
TextSlantDown | 173 | A downward slanted text shape. |
TextCanUp | 174 | A text shape that is curved upwards as if being read on the side of a can. |
TextCanDown | 175 | A text shape that is curved downwards as if being read on the side of a can. |
FlowChartAlternateProcess | 176 | |
FlowChartOffpageConnector | 177 | |
LineCalloutNoBorder1 | 178 | |
LineCalloutWithAccentBar1 | 179 | |
LineCalloutWithBorder1 | 180 | |
LineCalloutWithBorderAndAccentBar1 | 181 | |
LeftRightUpArrow | 182 | |
Sun | 183 | |
Moon | 184 | |
DoubleBracket | 185 | A shape enclosed in brackets. |
DoubleBrace | 186 | A shape enclosed in braces. |
Star4 | 187 | |
DoubleWave | 188 | |
BlankActionButton | 189 | |
HomeActionButton | 190 | |
HelpActionButton | 191 | |
InformationActionButton | 192 | |
ForwardNextActionButton | 193 | |
BackPreviousActionButton | 194 | |
EndActionButton | 195 | |
BeginningActionButton | 196 | |
ReturnActionButton | 197 | |
DocumentActionButton | 198 | |
SoundActionButton | 199 | |
MovieActionButton | 200 | |
HostControl | 201 | This value SHOULD NOT be used. |
TextBox | 202 | |
Heptagon | 2049 | |
Decagon | 2050 | |
Dodecagon | 2051 | |
Star6 | 2052 | |
Star7 | 2053 | |
Star10 | 2054 | |
Star12 | 2055 | |
RoundSingleCornerRectangle | 2056 | |
RoundSameSideCornerRectangle | 2057 | |
RoundDiagonalCornerRectangle | 2058 | |
SnipRoundSingleCornerRectangle | 2059 | |
SnipSingleCornerRectangle | 2060 | |
SnipSameSideCornerRectangle | 2061 | |
SnipDiagonalCornerRectangle | 2062 | |
Teardrop | 2063 | |
Pie | 2064 | |
HalfFrame | 2066 | |
L_Shape | 2067 | |
DiagonalStripe | 2068 | |
Chord | 2069 | |
Cloud | 2070 | |
MathPlus | 2071 | |
MathMinus | 2072 | |
MathMultiply | 2073 | |
MathDivide | 2074 | |
MathEqual | 2075 | |
MathNotEqual | 2076 | |
LineInv | 2077 | |
NonIsoscelesTrapezoid | 2078 | |
PieWedge | 2079 | |
LeftCircularArrow | 2080 | |
LeftRightCircularArrow | 2081 | |
SwooshArrow | 2082 | |
LeftRightRibbon | 2083 | |
TextNoShape | 2084 | |
Gear6 | 2097 | |
Gear9 | 2098 | |
Funnel | 2099 | |
CornerTabs | 2100 | |
SquareTabs | 2101 | |
PlaqueTabs | 2102 | |
ChartX | 2103 | |
ChartStar | 2104 | |
ChartPlus | 2105 | |
Frame | 2106 | |
Model3D | 2107 | |
RoundCallout | 2108 | There is no such type in Excel |
TextArchLeftPour | 2109 | There is no such type in Excel |
TextArchRightPour | 2110 | There is no such type in Excel |
TextArchLeftCurve | 2111 | There is no such type in Excel |
TextArchRightCurve | 2112 | There is no such type in Excel |
Unknown | 4095 |
Examples
[C#]
namespace Demos
{
using Aspose.Cells;
using Aspose.Cells.Drawing;
using System;
public class AutoShapeTypeDemo
{
public static void AutoShapeTypeExample()
{
// Create a new workbook
Workbook workbook = new Workbook();
// Add a new worksheet to the workbook
Worksheet worksheet = workbook.Worksheets[0];
// Add a rectangle shape to the worksheet
Shape shape = worksheet.Shapes.AddAutoShape(AutoShapeType.Rectangle, 8, 0, 1, 0, 100, 200);
// Set properties of the shape
shape.Name = "MyRectangle";
shape.AlternativeText = "This is a rectangle shape";
shape.Title = "Rectangle Shape";
shape.IsHidden = false;
shape.RotationAngle = 45;
shape.Width = 150;
shape.Height = 100;
shape.Fill.SolidFill.Color = System.Drawing.Color.Yellow;
shape.Line.Weight = 2;
shape.Line.DashStyle = MsoLineDashStyle.Solid;
// Add an oval shape to the worksheet
Shape ovalShape = worksheet.Shapes.AddAutoShape(AutoShapeType.Oval, 5, 0, 5, 0, 100, 200);
// Set properties of the oval shape
ovalShape.Name = "MyOval";
ovalShape.AlternativeText = "This is an oval shape";
ovalShape.Title = "Oval Shape";
ovalShape.IsHidden = false;
ovalShape.RotationAngle = 30;
ovalShape.Width = 120;
ovalShape.Height = 80;
ovalShape.Fill.SolidFill.Color = System.Drawing.Color.Blue;
ovalShape.Line.Weight = 1;
Shape doubleWave = worksheet.Shapes.AddAutoShape(AutoShapeType.DoubleWave, 15, 0, 5, 0, 100, 200);
// Set properties of the double wave shape
doubleWave.Name = "Double Wave";
doubleWave.AlternativeText = "This is an oval shape";
doubleWave.Title = "Oval Shape";
doubleWave.IsHidden = false;
doubleWave.RotationAngle = 30;
doubleWave.Width = 120;
doubleWave.Height = 80;
doubleWave.Fill.SolidFill.Color = System.Drawing.Color.Green;
doubleWave.Line.Weight = 1;
// Save the workbook
workbook.Save("AutoShapeTypeExample.xlsx");
workbook.Save("AutoShapeTypeExample.pdf");
// Output the results
Console.WriteLine("Shapes added and workbook saved successfully.");
}
}
}
See Also
- namespace Aspose.Cells.Drawing
- assembly Aspose.Cells