Skip to content

Polygon.FillRule

property · Polygon · cAlgo.API

DesktopCLICloud

Gets or sets a FillRule enumeration that specifies how the interior fill of the shape is determined.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public FillRule FillRule {get; set;}
polygon.FillRule: FillRule

Returns FillRule

Examples

var star = new Polygon { FillColor = Color.Gold, FillRule = FillRule.Nonzero };
star.Points = new[] { new Point(50, 0), new Point(80, 100), new Point(0, 35), new Point(100, 35), new Point(20, 100) };
Chart.AddControl(star);
star = Polygon()
star.FillColor = Color.Gold
star.FillRule = FillRule.Nonzero
star.Points = [Point(50, 0), Point(80, 100), Point(0, 35), Point(100, 35), Point(20, 100)]
api.Chart.AddControl(star)