Spread ASP.NET 6.0 Product Documentation
ImageCellType Constructor(String)
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ImageCellType Class > ImageCellType Constructor : ImageCellType Constructor(String)


imageUrl
Path and file name of the picture to display in the cell

Glossary Item Box

Creates a new new image cell with the specified image.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal imageUrl As String _
)
Visual Basic (Usage)Copy Code
Dim imageUrl As String
 
Dim instance As New ImageCellType(imageUrl)
C# 
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.
C#Copy Code
    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;
Visual BasicCopy Code
    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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.