Spread Windows Forms 6.0 Product Documentation
ShapeProps Constructor(Control)
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > ShapeProps Class > ShapeProps Constructor : ShapeProps Constructor(Control)


control
Control

Glossary Item Box

Creates a new set of shape properties for the specified control.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal control As Control _
)
Visual Basic (Usage)Copy Code
Dim control As Control
 
Dim instance As New ShapeProps(control)
C# 
public ShapeProps( 
   Control control
)

Parameters

control
Control

Example

This example adds a rectangle shape to the container.
C#Copy Code
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);
Visual BasicCopy Code
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)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.