System.Drawing.Point[] pts = {new System.Drawing.Point(50, 0),
new System.Drawing.Point(0, 100),
new System.Drawing.Point(40, 100),
new System.Drawing.Point(5, 200),
new System.Drawing.Point(80, 80),
new System.Drawing.Point(40, 80),
new System.Drawing.Point(80, 0),
new System.Drawing.Point(50, 0)};
System.Drawing.Drawing2D.GraphicsPath gpath = new System.Drawing.Drawing2D.GraphicsPath();
gpath.AddPolygon(pts);
FarPoint.Win.Spread.DrawingSpace.CustomShape custom = new FarPoint.Win.Spread.DrawingSpace.CustomShape();
custom.Parent = fpSpread1;
// shape should be set before bounds
custom.Shape = gpath;
custom.SetBounds(10, 10, 30, 60);
custom.BackColor = System.Drawing.Color.Yellow;
custom.Name = "customLightningBolt";
fpSpread1.ActiveSheet.AddShape(custom);