Click or drag to resize

Figure Enumeration

Specifies Microsoft Word figures.

Namespace: SautinSoft.Document.Drawing
Assembly: SautinSoft.Document (in SautinSoft.Document.dll) Version: 2024.1.24
Syntax
public enum Figure
Members
Member nameValueDescription
Rectangle0 
RoundRectangle1 
Ellipse2 
Diamond3 
IsoscelesTriangle4 
RightTriangle5 
Parallelogram6 
Trapezoid7 
Hexagon8 
Octagon9 
PlusSign10 
Star11 
Arrow12 
ThickArrow13 
HomePlate14 
Cube15 
Balloon16 
Seal17 
Arc18 
Line19 
Plaque20 
Can21 
Donut22 
TextSimple23 
TextOctagon24 
TextHexagon25 
TextCurve26 
TextWave27 
TextRing28 
TextOnCurve29 
TextOnRing30 
StraightConnector131 
BentConnector232 
BentConnector333 
BentConnector434 
BentConnector535 
CurvedConnector236 
CurvedConnector337 
CurvedConnector438 
CurvedConnector539 
Callout140 
Callout241 
Callout342 
AccentCallout143 
AccentCallout244 
AccentCallout345 
BorderCallout146 
BorderCallout247 
BorderCallout348 
AccentBorderCallout149 
AccentBorderCallout250 
AccentBorderCallout351 
Ribbon52 
Ribbon253 
Chevron54 
Pentagon55 
NoSmoking56 
Seal857 
Seal1658 
Seal3259 
WedgeRectangleCallout60 
WedgeRRectCallout61 
WedgeEllipseCallout62 
Wave63 
FoldedCorner64 
LeftArrow65 
DownArrow66 
UpArrow67 
LeftRightArrow68 
UpDownArrow69 
IrregularSeal170 
IrregularSeal271 
LightningBolt72 
Heart73 
PictureFrame74 
QuadArrow75 
LeftArrowCallout76 
RightArrowCallout77 
UpArrowCallout78 
DownArrowCallout79 
LeftRightArrowCallout80 
UpDownArrowCallout81 
QuadArrowCallout82 
Bevel83 
LeftBracket84 
RightBracket85 
LeftBrace86 
RightBrace87 
LeftUpArrow88 
BentUpArrow89 
BentArrow90 
Seal2491 
StripedRightArrow92 
NotchedRightArrow93 
BlockArc94 
SmileyFace95 
VerticalScroll96 
HorizontalScroll97 
CircularArrow98 
NotchedCircularArrow99 
UTurnArrow100 
CurvedRightArrow101 
CurvedLeftArrow102 
CurvedUpArrow103 
CurvedDownArrow104 
CloudCallout105 
EllipseRibbon106 
EllipseRibbon2107 
FlowChartProcess108 
FlowChartDecision109 
FlowChartInputOutput110 
FlowChartPredefinedProcess111 
FlowChartInternalStorage112 
FlowChartDocument113 
FlowChartMultidocument114 
FlowChartTerminator115 
FlowChartPreparation116 
FlowChartManualInput117 
FlowChartManualOperation118 
FlowChartConnector119 
FlowChartPunchedCard120 
FlowChartPunchedTape121 
FlowChartSummingJunction122 
FlowChartOr123 
FlowChartCollate124 
FlowChartSort125 
FlowChartExtract126 
FlowChartMerge127 
FlowChartOfflineStorage128 
FlowChartOnlineStorage129 
FlowChartMagneticTape130 
FlowChartMagneticDisk131 
FlowChartMagneticDrum132 
FlowChartDisplay133 
FlowChartDelay134 
TextPlainText135 
TextStop136 
TextTriangle137 
TextTriangleInverted138 
TextChevron139 
TextChevronInverted140 
TextRingInside141 
TextRingOutside142 
TextArchUpCurve143 
TextArchDownCurve144 
TextCircleCurve145 
TextButtonCurve146 
TextArchUpPour147 
TextArchDownPour148 
TextCirclePour149 
TextButtonPour150 
TextCurveUp151 
TextCurveDown152 
TextCascadeUp153 
TextCascadeDown154 
TextWave1155 
TextWave2156 
TextWave3157 
TextWave4158 
TextInflate159 
TextDeflate160 
TextInflateBottom161 
TextDeflateBottom162 
TextInflateTop163 
TextDeflateTop164 
TextDeflateInflate165 
TextDeflateInflateDeflate166 
TextFadeRight167 
TextFadeLeft168 
TextFadeUp169 
TextFadeDown170 
TextSlantUp171 
TextSlantDown172 
TextCanUp173 
TextCanDown174 
FlowChartAlternateProcess175 
FlowChartOffPageConnector176 
Callout90177 
AccentCallout90178 
BorderCallout90179 
AccentBorderCallout90180 
LeftRightUpArrow181 
Sun182 
Moon183 
BracketPair184 
BracePair185 
Seal4186 
DoubleWave187 
ActionButtonBlank188 
ActionButtonHome189 
ActionButtonHelp190 
ActionButtonInformation191 
ActionButtonForwardNext192 
ActionButtonBackPrevious193 
ActionButtonEnd194 
ActionButtonBeginning195 
ActionButtonReturn196 
ActionButtonDocument197 
ActionButtonSound198 
ActionButtonMovie199 
HostControl200 
TextBox201 
LineInv202 
NonIsoscelesTrapezoid203 
Star4204 
Star5205 
Star6206 
Star7207 
Star8208 
Star10209 
Star12210 
Star16211 
Star24212 
Star32213 
Round1Rectangle214 
Round2SameRectangle215 
Round2DiagRectangle216 
SnipRoundRectangle217 
Snip1Rectangle218 
Snip2SameRectangle219 
Snip2DiagRectangle220 
TearDrop221 
PieWedge222 
Pie223 
RightArrow224 
LeftCircularArrow225 
LeftRightCircularArrow226 
SwooshArrow227 
Frame228 
HalfFrame229 
Corner230 
DiagonalStripe231 
Chord232 
WedgeRoundRectangleCallout233 
Cloud234 
Gear6235 
Gear9236 
Funnel237 
MathPlus238 
MathMinus239 
MathMultiply240 
MathDivide241 
MathEqual242 
MathNotEqual243 
CornerTabs244 
SquareTabs245 
PlaqueTabs246 
ChartX247 
ChartStar248 
ChartPlus249 
Heptagon250 
Decagon251 
Dodecagon252 
Example

See Developer Guide: This sample shows how to work with shapes and geometry

This sample shows how to work with shapes and geometry using C#
using System;
using System.IO;
using SautinSoft.Document;
using SautinSoft.Document.Drawing;

namespace Sample
{
    class Sample
    {

        static void Main(string[] args)
        {
            // Get your free 30-day key here:   
            // https://sautinsoft.com/start-for-free/

            Geometry();
        }

        /// <summary>
        /// This sample shows how to work with shapes and geometry. 
        /// </summary>
        /// <remarks>
        /// Details: https://sautinsoft.com/products/document/help/net/developer-guide/geometry.php
        /// </remarks>
        public static void Geometry()
        {
            string pictPath = @"..\..\..\image1.jpg";
            string documentPath = @"Geometry.docx";

            // Let's create a new document.
            DocumentCore dc = new DocumentCore();

            // Create shape 1 with preset geometry (Smiley Face).
            Shape shp1 = new Shape(dc, Layout.Floating(
                new HorizontalPosition(20f, LengthUnit.Millimeter, HorizontalPositionAnchor.LeftMargin),
                new VerticalPosition(80f, LengthUnit.Millimeter, VerticalPositionAnchor.TopMargin),
                new Size(100, 100)
                ));

            // Specify outline and fill.
            shp1.Outline.Fill.SetSolid(new Color("358CCB"));
            shp1.Outline.Width = 3;
            shp1.Fill.SetSolid(Color.Orange);

            // Specify a figure.
            shp1.Geometry.SetPreset(Figure.SmileyFace);

            // Create shape 2 with custom geometry path (using points array).
            Shape shp2 = new Shape(dc, Layout.Floating(
                new HorizontalPosition(85f, LengthUnit.Millimeter, HorizontalPositionAnchor.LeftMargin),
                new VerticalPosition(80f, LengthUnit.Millimeter, VerticalPositionAnchor.TopMargin),
                new Size(100, 100)
                ));

            // Specify outline and fill using a picture.
            shp2.Outline.Fill.SetSolid(Color.Green);
            shp2.Outline.Width = 2;

            // Set the picture as fill for this shape.
            shp2.Fill.SetPicture(pictPath);

            // Specify the maximum X and Y coordinates that should be used
            // for within the path coordinate system.
            Size size = new Size(1, 1);

            // Specify the path points (draw a circle of 10 points).
            Point[] points = new Point[10];
            double a = 0;
            for (int i = 0; i < 10; ++i)
            {
                points[i] = new Point(0.5 + Math.Sin(a) * 0.5, 0.5 + Math.Cos(a) * 0.5);
                a += 2 * Math.PI / 10;
            }

            // Create and add new custom path from specified points array.
            shp2.Geometry.SetCustom().AddPath(size, points, true);

            // Create shape3 with custom geometry path (using path elements).
            Shape shp3 = new Shape(dc, Layout.Floating(
                new HorizontalPosition(150f, LengthUnit.Millimeter, HorizontalPositionAnchor.LeftMargin),
                new VerticalPosition(80f, LengthUnit.Millimeter, VerticalPositionAnchor.TopMargin),
                new Size(100, 100)
                ));

            // Specify outline and fill.
            shp3.Outline.Fill.SetSolid(new Color(255,0,0));
            shp3.Outline.Width = 2;
            shp3.Fill.SetSolid(Color.Yellow);

            // Create and add new custom path.
            CustomPath path = shp3.Geometry.SetCustom().AddPath(new Size(1, 1));

            // Specify path elements.
            path.MoveTo(new Point(0, 0));
            path.AddLine(new Point(0, 1));
            path.AddLine(new Point(1, 1));
            path.AddLine(new Point(1, 0));
            path.ClosePath();

            // Add drawing elements to document.
            dc.Content.End.Insert(shp1.Content);
            dc.Content.End.Insert(shp2.Content);
            dc.Content.End.Insert(shp3.Content);

            // Save the document to DOCX format.
            dc.Save(documentPath);

            // Open the result for demonstration purposes.
            System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(documentPath) { UseShellExecute = true });
        }
    }
}
This sample shows how to work with shapes and geometry using VB.Net
Imports System
Imports System.IO
Imports SautinSoft.Document
Imports SautinSoft.Document.Drawing

Module Sample
    Sub Main()
        Geometry()
    End Sub
    ''' Get your free 30-day key here:   
    ''' https://sautinsoft.com/start-for-free/
    ''' <summary>
    ''' This sample shows how to work with shapes and geometry. 
    ''' </summary>
    ''' <remarks>
    ''' Details: https://sautinsoft.com/products/document/help/net/developer-guide/geometry.php
    ''' </remarks>
    Sub Geometry()
        Dim pictPath As String = "..\..\..\image1.jpg"
        Dim documentPath As String = "Geometry.docx"

        ' Let's create a new document.
        Dim dc As New DocumentCore()

        ' Create shape 1 with preset geometry (Smiley Face).
        Dim shp1 As New Shape(dc, Layout.Floating(New HorizontalPosition(20.0F, LengthUnit.Millimeter, HorizontalPositionAnchor.LeftMargin), New VerticalPosition(80.0F, LengthUnit.Millimeter, VerticalPositionAnchor.TopMargin), New Size(100, 100)))

        ' Specify outline and fill.
        shp1.Outline.Fill.SetSolid(New Color("358CCB"))
        shp1.Outline.Width = 3
        shp1.Fill.SetSolid(Color.Orange)

        ' Specify a figure.
        shp1.Geometry.SetPreset(Figure.SmileyFace)

        ' Create shape 2 with custom geometry path (using points array).
        Dim shp2 As New Shape(dc, Layout.Floating(New HorizontalPosition(85.0F, LengthUnit.Millimeter, HorizontalPositionAnchor.LeftMargin), New VerticalPosition(80.0F, LengthUnit.Millimeter, VerticalPositionAnchor.TopMargin), New Size(100, 100)))

        ' Specify outline and fill using a picture.
        shp2.Outline.Fill.SetSolid(Color.Green)
        shp2.Outline.Width = 2

        ' Set the picture as fill for this shape.
        shp2.Fill.SetPicture(pictPath)

        ' Specify the maximum X and Y coordinates that should be used
        ' for within the path coordinate system.
        Dim size As New Size(1, 1)

        ' Specify the path points (draw a circle of 10 points).
        Dim points(9) As Point
        Dim a As Double = 0
        For i As Integer = 0 To 9
            points(i) = New Point(0.5 + Math.Sin(a) * 0.5, 0.5 + Math.Cos(a) * 0.5)
            a += 2 * Math.PI / 10
        Next i

        ' Create and add new custom path from specified points array.
        shp2.Geometry.SetCustom().AddPath(size, points, True)

        ' Create shape3 with custom geometry path (using path elements).
        Dim shp3 As New Shape(dc, Layout.Floating(New HorizontalPosition(150.0F, LengthUnit.Millimeter, HorizontalPositionAnchor.LeftMargin), New VerticalPosition(80.0F, LengthUnit.Millimeter, VerticalPositionAnchor.TopMargin), New Size(100, 100)))

        ' Specify outline and fill.
        shp3.Outline.Fill.SetSolid(New Color(255, 0, 0))
        shp3.Outline.Width = 2
        shp3.Fill.SetSolid(Color.Yellow)

        ' Create and add new custom path.
        Dim path As CustomPath = shp3.Geometry.SetCustom().AddPath(New Size(1, 1))

        ' Specify path elements.
        path.MoveTo(New Point(0, 0))
        path.AddLine(New Point(0, 1))
        path.AddLine(New Point(1, 1))
        path.AddLine(New Point(1, 0))
        path.ClosePath()

        ' Add drawing elements to document.
        dc.Content.End.Insert(shp1.Content)
        dc.Content.End.Insert(shp2.Content)
        dc.Content.End.Insert(shp3.Content)

        ' Save the document to DOCX format.
        dc.Save(documentPath)

        ' Open the result for demonstration purposes.
        System.Diagnostics.Process.Start(New System.Diagnostics.ProcessStartInfo(documentPath) With {.UseShellExecute = True})
    End Sub

End Module
See Also