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

Defines a four-sided shape whose vertices lie at the midpoint of each side of its bounds.

Definition

Constructors

C#
public DiamondShape()

Methods

Creates a closed diamond path fitted to the specified bounding rectangle.

C#
public override GraphicsPath CreatePath(Rectangle bounds)
Parameters:boundsRectangle

The rectangle that determines the outer coordinates of the diamond.

Returns:

GraphicsPath

A path containing the four diamond vertices.

Overrides: ElementShape.CreatePath(Rectangle)