In This Article

Triangle Class

Represents a Path that renders a triangle shape with the apex on a specified side.

public class Triangle : Shape
Inheritance:
object Visual UIElement FrameworkElement Shape object

Constructors

Triangle()

Initializes an instance of the Triangle class.

public Triangle()

Properties

ApexSide

Gets or sets the side upon which the triangle apex appears.

public Side ApexSide { get; set; }

Property Value

Side:

The side upon which the triangle apex appears. The default value is Side.Top.

DefiningGeometry

Gets a value that represents the Geometry of the Shape.

protected override Geometry DefiningGeometry { get; }

Property Value

Geometry:

The Geometry of the Shape.

IsClosed

Gets or sets whether the side opposite the apex is closed.

public bool IsClosed { get; set; }

Property Value

bool:

true if the side opposite the apex is closed; otherwise, false. The default value is true.

Fields

ApexSideProperty

Identifies the ApexSide dependency property. This field is read-only.

public static readonly DependencyProperty ApexSideProperty

DataProperty

Identifies the ActiproSoftware.Windows.Shapes.Triangle.Data dependency property. This field is read-only.

public static readonly DependencyProperty DataProperty

IsClosedProperty

Identifies the IsClosed dependency property. This field is read-only.

public static readonly DependencyProperty IsClosedProperty