Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / CreateButtonEventArgs Class / Label Property

In This Topic
    Label Property (CreateButtonEventArgs)
    In This Topic
    Gets or sets the text that displays in the command button.
    Public Property Label As String
    Dim instance As CreateButtonEventArgs
    Dim value As String
    instance.Label = value
    value = instance.Label
    public string Label {get; set;}

    Property Value

    String containing the text for the button
    This example changes the label of the Update button in the command bar.
    private void FpSpread1CreateButton(object sender, FarPoint.Web.Spread.CreateButtonEventArgs e)
    if(e.Command == "Update")
            e.Label = "ReFresh";
    Private Sub FpSpread1CreateButton(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.CreateButtonEventArgs) Handles FpSpread1.CreateButton
        If e.Command = "Update" Then
            e.Label = "ReFresh"
        End If
    End Sub
    See Also