Spread for ASP.NET 9.0 Product Documentation
Text Property (ButtonCellType)
Example 


Gets or sets the button text.
Syntax
'Declaration
 
Public Property Text As String
'Usage
 
Dim instance As ButtonCellType
Dim value As String
 
instance.Text = value
 
value = instance.Text
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.
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);
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 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

ButtonCellType Class
ButtonCellType Members
ImageUrl Property

 

 


Copyright © GrapeCity, inc. All rights reserved.