Back to Devexpress

ASPxButton.Text Property

aspnet-devexpress-dot-web-dot-aspxbutton-5872fa08.md

latest3.8 KB
Original Source

ASPxButton.Text Property

Gets or sets the text displayed within the button control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string Text { get; set; }
vb
<DefaultValue("")>
Public Property Text As String

Property Value

TypeDefaultDescription
StringString.Empty

A String value representing the text displayed within the button control.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Text property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-scheduler-custom-adaptive-form-using-templates/CS/WebApplication1/DevExpress/ASPxSchedulerForms/AppointmentForm.ascx.cs#L79

csharp
btnOk.Text = ASPxSchedulerLocalizer.GetString(ASPxSchedulerStringId.Form_ButtonOk);
btnCancel.Text = ASPxSchedulerLocalizer.GetString(ASPxSchedulerStringId.Form_ButtonCancel);

xaf-win-add-custom-button-to-form-using-custom-view-item/CS/MySolution.Module.Web/ButtonDetailViewItemWeb.cs#L15

csharp
ASPxButton button = new ASPxButton();
button.Text = "Click me!";
button.EnableClientSideAPI = true;

asp-net-web-forms-scheduler-custom-adaptive-form-using-templates/VB/WebApplication1/DevExpress/ASPxSchedulerForms/AppointmentForm.ascx.vb#L86

vb
btnOk.Text = ASPxSchedulerLocalizer.GetString(ASPxSchedulerStringId.Form_ButtonOk)
btnCancel.Text = ASPxSchedulerLocalizer.GetString(ASPxSchedulerStringId.Form_ButtonCancel)

xaf-win-add-custom-button-to-form-using-custom-view-item/VB/MySolution.Module.Web/ButtonDetailViewItemWeb.vb#L22

vb
Dim button As New ASPxButton()
button.Text = "Click me!"
button.EnableClientSideAPI = True

Implements

Text

See Also

Image

ASPxButton Class

ASPxButton Members

DevExpress.Web Namespace