Spread ASP.NET 6.0 Product Documentation
AlternateText Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ImageCellType Class : AlternateText Property


Glossary Item Box

Gets or sets the alternate text for the image cell.

Syntax

Visual Basic (Declaration) 
Public Property AlternateText As String
Visual Basic (Usage)Copy Code
Dim instance As ImageCellType
Dim value As String
 
instance.AlternateText = value
 
value = instance.AlternateText
C# 
public string AlternateText {get; set;}

Property Value

String containing the alternate text

Example

This sets the alternate text for the image cell.
C#Copy Code
FarPoint.Web.Spread.ImageCellType img = new FarPoint.Web.Spread.ImageCellType(); 
img.ImageUrl = "c:\\earth.ico"; 
img.AlternateText = "Alternate"; 
img.ImageAlign = ImageAlign.Left; 
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = img;
Visual BasicCopy Code
Dim img As New FarPoint.Web.Spread.ImageCellType
img.ImageUrl = "c:\earth.ico"
img.AlternateText = "Alternate"
img.ImageAlign = ImageAlign.Left
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = img

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.