Back to Devexpress

ShapeLine.EndArrowType Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-shapeline-4b40c592.md

latest4.3 KB
Original Source

ShapeLine.EndArrowType Property

Specifies the arrowhead type at the end of a line.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
LineArrowType EndArrowType { get; set; }
vb
Property EndArrowType As LineArrowType

Property Value

TypeDescription
LineArrowType

An enumeration member that specifies the arrowhead type.

|

Available values:

NameDescriptionExample
None

A line has no arrowhead at the specified end.

| | | Arrow |

An open arrowhead.

|

| | Diamond |

A diamond-shaped arrowhead.

|

| | Oval |

An oval-shaped arrowhead.

|

| | StealthArrow |

A stealth-shaped arrowhead.

|

| | TriangleArrow |

A triangular arrowhead.

|

|

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.

csharp
// 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;
vb
' Add a line to a document.
Dim lineArrow As Shape = document.Shapes.InsertLine(document.Range.Start, New PointF(300, 300), New PointF(850, 300))
Dim lineFormat As ShapeLine = 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

ShapeLine Interface

ShapeLine Members

DevExpress.XtraRichEdit.API.Native Namespace