Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ButtonCellType Class / Text Property

In This Topic
    Text Property (ButtonCellType)
    In This Topic
    Gets or sets the button text.
    Public Property Text As String
    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
    To specify a picture to display in the button, use the ImageUrl property.
    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)
    See Also