Spread Windows Forms 12.0 Product Documentation
ShapeProps Constructor(Control)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > ShapeProps Class > ShapeProps Constructor : ShapeProps Constructor(Control)
Control
Creates a new set of shape properties for the specified control.
Syntax
'Declaration
 
Public Function New( _
   ByVal control As Control _
)
'Usage
 
Dim control As Control
 
Dim instance As New ShapeProps(control)
public ShapeProps( 
   Control control
)

Parameters

control
Control
Example
This example adds a rectangle shape to the container.
FarPoint.Win.Spread.DrawingSpace.ShapeProps sp = new FarPoint.Win.Spread.DrawingSpace.ShapeProps(fpSpread1);
sp.Shape = new FarPoint.Win.Spread.DrawingSpace.RectangleShape();
sp.SetBounds(40, 40, 20, 20);
fpSpread1.ActiveSheet.AddShape(sp.Shape);
Dim sp As New FarPoint.Win.Spread.DrawingSpace.ShapeProps(FpSpread1)
sp.Shape = New FarPoint.Win.Spread.DrawingSpace.RectangleShape
sp.SetBounds(40, 40, 20, 20)
FpSpread1.ActiveSheet.AddShape(sp.Shape)
See Also

Reference

ShapeProps Class
ShapeProps Members
Overload List