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


Glossary Item Box

Creates a new universal "no" shape.

Syntax

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

Example

This example creates a universal No symbol shape.
C#Copy Code
FarPoint.Win.Spread.DrawingSpace.UniversalNoShape nosymbol = new FarPoint.Win.Spread.DrawingSpace.UniversalNoShape();
nosymbol.Parent = fpSpread1;
nosymbol.BackColor = Color.Red;
nosymbol.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth;
nosymbol.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical;
nosymbol.Anchor = 20;
nosymbol.SetBounds(15, 15, 50, 50);
fpSpread1.ActiveSheet.AddShape(nosymbol);
Visual BasicCopy Code
Dim nosymbol As New FarPoint.Win.Spread.DrawingSpace.UniversalNoShape
nosymbol.Parent = FpSpread1
nosymbol.BackColor = Color.Red
nosymbol.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth
nosymbol.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical
nosymbol.Anchor = 20
nosymbol.SetBounds(15, 15, 50, 50)
FpSpread1.ActiveSheet.AddShape(nosymbol)

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.