Spread Windows Forms 6.0 Product Documentation
Shape Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > ShapeProps Class : Shape Property


Glossary Item Box

Gets or sets the shape.

Syntax

Visual Basic (Declaration) 
Public Overridable Property Shape As PSShape
Visual Basic (Usage)Copy Code
Dim instance As ShapeProps
Dim value As PSShape
 
instance.Shape = value
 
value = instance.Shape
C# 
public virtual PSShape Shape {get; set;}

Example

C#Copy Code
FarPoint.Win.Spread.DrawingSpace.ShapeProps sp = new FarPoint.Win.Spread.DrawingSpace.ShapeProps();
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.