Spread Windows Forms 6.0 Product Documentation
Picture Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ProgressCellType Class : Picture Property


Glossary Item Box

Gets or sets the image to display for the progress indicator when indicator style is set to display a picture.

Syntax

Visual Basic (Declaration) 
Public Property Picture As Picture
Visual Basic (Usage)Copy Code
Dim instance As ProgressCellType
Dim value As Picture
 
instance.Picture = value
 
value = instance.Picture
C# 
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.
C#Copy Code
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;
Visual BasicCopy Code
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;

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.