# ArrowPrimitive

The **ArrowPrimitive** draws a filled triangular polygon. Orientation is controlled by the **Direction** property with possible **ArrowDirection** enumeration values of **Up**, **Down**, **Left** or **Right**. The arrow is filled with the **ForeColor** property value. The example below draws a **BorderPrimitive** and an **ArrowPrimitive**.

![Telerik UI for WinForms ArrowPrimitive and BorderPrimitive example](https://www.telerik.com/products/winforms/documentation/assets/c808a25497bccc7c9f7aafeeb0765660/tpf-primitives-arrowprimitive001.png)

#### Creating an ArrowPrimitive

 

 

```C#
public class MyArrowPrimitiveElement : RadElement
{
    protected override void CreateChildElements()
    {
        BorderPrimitive borderPrimitive = new BorderPrimitive();
        borderPrimitive.BoxStyle = BorderBoxStyle.OuterInnerBorders;
        borderPrimitive.Width = 1;
        borderPrimitive.GradientStyle = GradientStyles.Solid;
        borderPrimitive.ForeColor = Color.Blue;
        borderPrimitive.InnerColor = Color.Red;
        borderPrimitive.ZIndex = 1;
        ArrowPrimitive arrowPrimitive = new ArrowPrimitive();
        arrowPrimitive.Margin = new System.Windows.Forms.Padding(15);
        arrowPrimitive.StretchHorizontally = true;
        arrowPrimitive.StretchVertically = true;
        arrowPrimitive.Direction = ArrowDirection.Right;
        arrowPrimitive.ForeColor = Color.Blue;
        this.Children.Add(borderPrimitive);
        this.Children.Add(arrowPrimitive);
        base.CreateChildElements();
    }
}

```

```VB.NET
Public Class MyArrowPrimitiveElement
    Inherits RadElement
    Protected Overrides Sub CreateChildElements()
        Dim borderPrimitive As New BorderPrimitive()
        borderPrimitive.BoxStyle = BorderBoxStyle.OuterInnerBorders
        borderPrimitive.Width = 1
        borderPrimitive.GradientStyle = GradientStyles.Solid
        borderPrimitive.ForeColor = Color.Blue
        borderPrimitive.InnerColor = Color.Red
        borderPrimitive.ZIndex = 1
        Dim arrowPrimitive As New ArrowPrimitive()
        arrowPrimitive.Margin = New System.Windows.Forms.Padding(15)
        arrowPrimitive.StretchHorizontally = True
        arrowPrimitive.StretchVertically = True
        arrowPrimitive.Direction = ArrowDirection.Right
        arrowPrimitive.ForeColor = Color.Blue
        Me.Children.Add(borderPrimitive)
        Me.Children.Add(arrowPrimitive)
        MyBase.CreateChildElements()
    End Sub
End Class

```



## See Also

* [BorderPrimitive](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/primitives/borderprimitive)

* [CheckPrimitive](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/primitives/checkprimitive)

* [FillPrimitive](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/primitives/fillprimitive)

* [FocusPrimitive](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/primitives/focusprimitive)

* [GripPrimitive](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/primitives/gripprimitive)

* [ImagePrimitive](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/primitives/imageprimitive)

* [ImageShape](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/primitives/imageshape)

* [LightVisualElement](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/primitives/lightvisualelement)
