Shape.Stretch
property · Shape · cAlgo.API
DesktopCLICloud
Gets or sets the stretch value.
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 Stretch Stretch {get; set;}
shape.Stretch: Stretch
Returns Stretch
Examples
var polygon = new Polygon { Width = 200, Height = 100, FillColor = Color.Purple, Stretch = Stretch.Uniform };
polygon.Points = new[] { new Point(0, 10), new Point(10, 0), new Point(20, 10) };
Chart.AddControl(polygon);
polygon = Polygon()
polygon.Width = 200
polygon.Height = 100
polygon.FillColor = Color.Purple
polygon.Stretch = Stretch.Uniform
polygon.Points = [Point(0, 10), Point(10, 0), Point(20, 10)]
api.Chart.AddControl(polygon)