Spread ASP.NET 6.0 Product Documentation
Label Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CreateButtonEventArgs Class : Label Property


Glossary Item Box

Gets or sets the text that displays in the command button.

Syntax

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

Property Value

String containing the text for the button

Example

This example changes the label of the Update button in the command bar.
C#Copy Code
private void FpSpread1CreateButton(object sender, FarPoint.Web.Spread.CreateButtonEventArgs e)
{
if(e.Command == "Update")
    {
        e.Label = "ReFresh";
    }
}
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.