Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    ShapeLine.BeginArrowType Property

    Specifies the arrowhead type at the beginning of a line.

    Namespace: DevExpress.XtraRichEdit.API.Native

    Assembly: DevExpress.RichEdit.v25.1.Core.dll

    NuGet Package: DevExpress.RichEdit.Core

    #Declaration

    LineArrowType BeginArrowType { get; set; }

    #Property Value

    Type Description
    LineArrowType

    An enumeration member that specifies the arrowhead type.

    Available values:

    Name Description Example
    None

    A line has no arrowhead at the specified end.

    Arrow

    An open arrowhead.

    SpreadsheetControl_ArrowType_Open

    Diamond

    A diamond-shaped arrowhead.

    SpreadsheetControl_ArrowType_Diamond

    Oval

    An oval-shaped arrowhead.

    SpreadsheetControl_ArrowType_Oval

    StealthArrow

    A stealth-shaped arrowhead.

    SpreadsheetControl_ArrowType_Stealth

    TriangleArrow

    A triangular arrowhead.

    SpreadsheetControl_ArrowType_Triangle

    #Remarks

    Use the ShapeLine.BeginArrowType and ShapeLine.EndArrowType properties to display arrowheads at the start and end of a line. The following properties allow you to specify the arrowhead size:

    The example below shows how to create and format a line with arrowheads on both sides.

    Rich_ShapeLine_WithArrows

    // Add a line to a document.
    Shape lineArrow = document.Shapes.InsertLine(document.Range.Start, new PointF(300, 300), new PointF(850, 300));
    ShapeLine lineFormat = lineArrow.Line;
    // Specify the line color.
    lineFormat.Color = Color.OrangeRed;
    // Set the line width.
    lineFormat.Thickness = 5;
    // Add arrowheads to the line ends.
    lineFormat.BeginArrowType = LineArrowType.Diamond;
    lineFormat.BeginArrowWidth = LineArrowSize.Large;
    lineFormat.BeginArrowLength = LineArrowSize.Large;
    lineFormat.EndArrowType = LineArrowType.StealthArrow;
    lineFormat.EndArrowWidth = LineArrowSize.Large;
    lineFormat.EndArrowLength = LineArrowSize.Large;
    
    See Also