Spread Windows Forms 11.0 Product Documentation
Picture Property (ProgressCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ProgressCellType Class : Picture Property
Gets or sets the image to display for the progress indicator when indicator style is set to display a picture.
Syntax
'Declaration
 
Public Property Picture As Picture
'Usage
 
Dim instance As ProgressCellType
Dim value As Picture
 
instance.Picture = value
 
value = instance.Picture
public Picture Picture {get; set;}

Property Value

Picture object containing the image
Example
This example sets the picture for the progress indicator cell when the style is set to display a picture.
FarPoint.Win.Spread.CellType.ProgressCellType p = new FarPoint.Win.Spread.CellType.ProgressCellType(); 
p.Style = FarPoint.Win.ProgressStyle.Picture;
p.Picture = new FarPoint.Win.Picture(Image.FromFile("c:\\fplogosm.bmp"));
fpSpread1.ActiveSheet.Cells[0, 0].CellType = p; 
fpSpread1.ActiveSheet.Cells[0, 0].Value = 50;
FarPoint.Win.Spread.CellType.ProgressCellType p = new FarPoint.Win.Spread.CellType.ProgressCellType(); 
p.Style = FarPoint.Win.ProgressStyle.Picture;
p.Picture = new FarPoint.Win.Picture(Image.FromFile("c:\\fplogosm.bmp"));
fpSpread1.ActiveSheet.Cells[0, 0].CellType = p; 
fpSpread1.ActiveSheet.Cells[0, 0].Value = 50;
See Also

Reference

ProgressCellType Class
ProgressCellType Members