Spread Windows Forms 10.0 Product Documentation
TriangleShape Constructor()
Example 


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)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

TriangleShape Class
TriangleShape Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.