New to Telerik UI for WinForms? Download free 30-day trial

OverflowPrimitive

The OverflowPrimitive is a visual indicator and button that more choices are available. The OverflowPrimitive consists of a triangle and a line just under the base of the triangle. The triangle and line are colored using the ForeColor property. Depending on the Direction property of the arrow, BackColor and ShadowColor may be used.

tpf-primitives-overflowprimitive 001

Creating an OverflowPrimitive

public class MyOverflowPrimitiveElement : RadElement
{
    protected override void CreateChildElements()
    {
        OverflowPrimitive overflowPrimitive = new OverflowPrimitive(ArrowDirection.Down);
        overflowPrimitive.MinSize = new Size(30, 30);
        overflowPrimitive.ForeColor = Color.Blue;
        this.Children.Add(overflowPrimitive);
        base.CreateChildElements();
    }
}

Public Class MyOverflowPrimitiveElement
    Inherits RadElement
    Protected Overrides Sub CreateChildElements()
        Dim overflowPrimitive As New OverflowPrimitive(ArrowDirection.Down)
        overflowPrimitive.MinSize = New Size(30, 30)
        overflowPrimitive.ForeColor = Color.Blue
        Me.Children.Add(overflowPrimitive)
        MyBase.CreateChildElements()
    End Sub
End Class

See Also

In this article