Spread for ASP.NET 11 Product Documentation
ImageCellType Constructor(String)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ImageCellType Class > ImageCellType Constructor : ImageCellType Constructor(String)
Path and file name of the picture to display in the cell
Creates a new new image cell with the specified image.
Syntax
'Declaration
 
Public Function New( _
   ByVal imageUrl As String _
)
'Usage
 
Dim imageUrl As String
 
Dim instance As New ImageCellType(imageUrl)
public ImageCellType( 
   string imageUrl
)

Parameters

imageUrl
Path and file name of the picture to display in the cell
Example
This example creates an image cell, and places a graphic image in the cell. It also sizes the column and row containing the cell to better display the image.
FpSpread1.Sheets[0].Columns[0].Width = 200;
FpSpread1.Sheets[0].Rows[0].Height = 200;
FarPoint.Web.Spread.ImageCellType imagecell = new FarPoint.Web.Spread.ImageCellType("images\\dogs.jpg");
imagecell.TextOnRight = True;
FpSpread1.Sheets[0].Cells[0, 0].CellType = imagecell;
FpSpread1.Sheets(0).Columns(0).Width = 200
FpSpread1.Sheets(0).Rows(0).Height = 200
Dim imagecell As New FarPoint.Web.Spread.ImageCellType("images\dogs.jpg")
imagecell.TextOnRight = True
FpSpread1.Sheets(0).Cells(0, 0).CellType = imagecell
See Also

Reference

ImageCellType Class
ImageCellType Members
Overload List
ImageUrl Property