Spread Windows Forms 11.0 Product Documentation
BannerShape Constructor()
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > BannerShape Class > BannerShape Constructor : BannerShape Constructor()
Creates a new banner shape.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New BannerShape()
public BannerShape()
Example
This example creates a banner shape.
FarPoint.Win.Spread.DrawingSpace.BannerShape banner = new FarPoint.Win.Spread.DrawingSpace.BannerShape();
banner.Parent = fpSpread1;
banner.BackColor = Color.Red;
banner.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth;
banner.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical;
banner.Anchor = 20;
banner.SetBounds(15, 15, 50, 50);
fpSpread1.ActiveSheet.AddShape(banner);
Dim banner As New FarPoint.Win.Spread.DrawingSpace.BannerShape
banner.Parent = FpSpread1
banner.BackColor = Color.Red
banner.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth
banner.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical
banner.Anchor = 20
banner.SetBounds(15, 15, 50, 50)
FpSpread1.ActiveSheet.AddShape(banner)
See Also

Reference

BannerShape Class
BannerShape Members
Overload List