回复 1楼deppp的帖子
参考代码如下:
- fpSpread1.ActiveSheet.SetNote(2, 0, "Head of Development");
- fpSpread1.ActiveSheet.Cells[2, 0].NoteStyle = FarPoint.Win.Spread.NoteStyle.PopupNote;
- FarPoint.Win.Spread.DrawingSpace.StickyNoteStyleInfo nsinfo = new FarPoint.Win.Spread.DrawingSpace.StickyNoteStyleInfo();
- nsinfo = fpSpread1.ActiveSheet.GetStickyNoteStyleInfo(2, 0);
- nsinfo.BackColor = Color.Bisque;
- nsinfo.Font = new Font("Tahoma", 24);
- nsinfo.ForeColor = Color.Cyan;
- nsinfo.Width = 320;
- nsinfo.ShapeOutlineColor = Color.Cyan;
- nsinfo.ShapeOutlineThickness = 1;
- nsinfo.ShadowOffsetX = 3;
- nsinfo.ShadowOffsetY = 3;
- fpSpread1.ActiveSheet.SetStickyNoteStyleInfo(2, 0, nsinfo);
复制代码 |