padlock icon in a farpoint cell

Posted by: mamata on 8 September 2017, 1:11 pm EST

  • Posted 8 September 2017, 1:11 pm EST

    Hi Bob,

    We have one farpoint sheet. we are displaying some text values in a cell. Depending upon some conditions: we wanna add one padlock icon as well as one apple core icon to that particular cell.

    Can u plz tell how to add an icon to a cell of a farpoint?



  • Replied 8 September 2017, 1:11 pm EST

    There is a BackgroundImage property for the celltypes but you can only put one image in the cell.  If you want two images you would have to write a custom celltype and add the images in the PaintCell override.
  • Replied 8 September 2017, 1:11 pm EST

    thanks Bob.  but i need one text as well as one image in one cell. means, i wanna append some text with an image. plz let me know.

  • Replied 8 September 2017, 1:11 pm EST

    Dim t As New FarPoint.Win.Spread.CellType.TextCellType
    t.BackgroundImage = New FarPoint.Win.Picture(Image.FromFile("c:\earth.ico"), FarPoint.Win.RenderStyle.Normal, Color.Transparent, FarPoint.Win.HorizontalAlignment.Right, FarPoint.Win.VerticalAlignment.Center)
    FpSpread1.ActiveSheet.Cells(1, 1).CellType = t
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels