System.Drawing.Point[] pts = {new System.Drawing.Point(25, 0),
New System.Drawing.Point(0, 50),
New System.Drawing.Point(20, 50),
New System.Drawing.Point((int)2.5, 100),
New System.Drawing.Point(40, 40),
New System.Drawing.Point(20, 40),
New System.Drawing.Point(40, 0),
New System.Drawing.Point(25, 0)};
System.Drawing.Drawing2D.GraphicsPath gpath = new System.Drawing.Drawing2D.GraphicsPath();
gpath.AddPolygon(pts);
Point pt = new Point(150, 60);
FarPoint.Win.Spread.DrawingSpace.PSObject pso = new FarPoint.Win.Spread.DrawingSpace.CustomShape();
pso.BackColor = Color.Black;
pso.AlphaBlendBackColor = 90;
pso.Enabled = true;
pso.CanMove = FarPoint.Win.Spread.DrawingSpace.Moving.HorizontalAndVertical;
pso.CanRotate = true;
pso.CanSize = FarPoint.Win.Spread.DrawingSpace.Sizing.HeightAndWidth;
pso.Shape = gpath;
pso.SetBounds(250, 250, 120, 120);
pso.Location = pt;
pso.Height = 20;
pso.Left = pt.X;
pso.Top = pt.X;
pso.Width = 40
fpSpread1.ActiveSheet.AddShape(pso);