Enum MsoArrowheadStyle

MsoArrowheadStyle enumeration

Enumerates the line end type of the shape border line.

public enum MsoArrowheadStyle

Values

NameValueDescription
None0No line end type.
Arrow1Arrow line end type.
ArrowStealth2Arrow Stealth line end type.
ArrowDiamond3Arrow Diamond Line end type.
ArrowOval4Arrow Oval line end type.
ArrowOpen5Arrow Open line end type.

Examples

using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using System.Drawing;

namespace AsposeCellsExamples
{
    public class DrawingClassMsoArrowheadStyleDemo
    {
        public static void Run()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];

            // Add a line shape
            LineShape lineShape = worksheet.Shapes.AddLine(5, 5, 10, 10, 100, 100);

            // Set line properties
            MsoLineFormat lineFormat = lineShape.LineFormat;
            lineFormat.ForeColor = System.Drawing.Color.Black;
            lineFormat.DashStyle = MsoLineDashStyle.DashDot;
            lineFormat.Weight = 0.75;

            // Set arrowhead styles
            lineShape.Line.BeginArrowheadStyle = MsoArrowheadStyle.ArrowStealth;
            lineShape.Line.EndArrowheadStyle = MsoArrowheadStyle.Arrow;
            lineShape.Line.BeginArrowheadLength = MsoArrowheadLength.Medium;
            lineShape.Line.EndArrowheadLength = MsoArrowheadLength.Medium;

            // Save the workbook
            workbook.Save("MsoArrowheadStyleDemo.xlsx");
        }
    }
}

See Also