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

In This Topic
    ImageUrl Property (ButtonCellType)
    In This Topic
    Gets or sets the image to display in the button cell.
    Public Property ImageUrl As String
    Dim instance As ButtonCellType
    Dim value As String
    instance.ImageUrl = value
    value = instance.ImageUrl
    public string ImageUrl {get; set;}

    Property Value

    String containing the URL for the image
    To specify the text for the button, use the Text property.
    This example sets the location of the image to display in the 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.ImageButton;
    btn.ImageUrl = "D:\\img\btns\\edit-e.jpg";
    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.ImageButton
    btn.ImageUrl = "D:\img\btns\edit-e.jpg"
    style.CellType = btn
    FpSpread1.Sheets(0).SetStyleInfo(0, 0, style)
    See Also