Spread Windows Forms 11.0 Product Documentation
TriangleShape Constructor()
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > TriangleShape Class > TriangleShape Constructor : TriangleShape Constructor()
Creates a new triangle shape.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New TriangleShape()
public TriangleShape()
Example
This example creates a triangle shape.
FarPoint.Win.Spread.DrawingSpace.TriangleShape ts = new FarPoint.Win.Spread.DrawingSpace.TriangleShape();
ts.Parent = fpSpread1;
ts.BackColor = Color.Red;
ts.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth;
ts.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical;
ts.Anchor = 20;
ts.SetBounds(15, 15, 50, 50);
fpSpread1.ActiveSheet.AddShape(ts);
Dim ts As New FarPoint.Win.Spread.DrawingSpace.TriangleShape
ts.Parent = FpSpread1
ts.BackColor = Color.Red
ts.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth
ts.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical
ts.Anchor = 20
ts.SetBounds(15, 15, 50, 50)
FpSpread1.ActiveSheet.AddShape(ts)
See Also

Reference

TriangleShape Class
TriangleShape Members
Overload List