Spread for ASP.NET 7.0 Product Documentation
Text Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ButtonCellType Class : Text Property


Glossary Item Box

Gets or sets the button text.

Syntax

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

Property Value

String containing the text

Remarks

To specify a picture to display in the button, use the ImageUrl property.

Example

This example displays custom text in a button cell.
C#Copy Code
FarPoint.Web.Spread.ButtonCellType btn = New FarPoint.Web.Spread.ButtonCellType();
FarPoint.Web.Spread.StyleInfo style = New FarPoint.Web.Spread.StyleInfo();
btn.ButtonType = FarPoint.Web.Spread.ButtonType.PushButton;
btn.Text = "Click";
style.CellType = btn;
FpSpread1.Sheets[0].SetStyleInfo(0, 0, style);
Visual BasicCopy Code
Dim btn As New FarPoint.Web.Spread.ButtonCellType()
Dim style As New FarPoint.Web.Spread.StyleInfo()
btn.ButtonType = FarPoint.Web.Spread.ButtonType.PushButton
btn.Text = "Click"
style.CellType = btn
FpSpread1.Sheets(0).SetStyleInfo(0, 0, style)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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