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


Glossary Item Box

Creates a new diamond shape.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New DiamondShape()
C# 
public DiamondShape()

Example

This example creates a diamond shape.
C#Copy Code
FarPoint.Win.Spread.DrawingSpace.DiamondShape ds = new FarPoint.Win.Spread.DrawingSpace.DiamondShape();
ds.Parent = fpSpread1;
ds.BackColor = Color.Red;
ds.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth;
ds.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical;
ds.Anchor = 40;
ds.SetBounds(25, 25, 50, 50);

fpSpread1.ActiveSheet.AddShape(ds);
Visual BasicCopy Code
Dim ds As New FarPoint.Win.Spread.DrawingSpace.DiamondShape
ds.Parent = FpSpread1
ds.BackColor = Color.Red
ds.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth
ds.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical
ds.Anchor = 40
ds.SetBounds(25, 25, 50, 50)

FpSpread1.ActiveSheet.AddShape(ds)

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.