Back to Devexpress

TabBase.Text Property

aspnet-devexpress-dot-web-dot-tabbase.md

latest3.5 KB
Original Source

TabBase.Text Property

Gets or sets the text content of the current tab (tab page) object.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
String"Tab"

A string value that specifies the text content of the TabBase.

|

Remarks

Use the Text property to specify the text content of the current tab (tab page). The position of the text within items is specified by the AppearanceStyleBase.HorizontalAlign and AppearanceStyleBase.VerticalAlign properties available via the corresponding style properties of a tab control or a tab (tab page) object.

If the Tab.NavigateUrl property of a tab is assigned, the item serves as a hyperlink and the appearance of the item’s text set by the Text property can be controlled via the ASPxTabControl.LinkStyle property.

In addition to the text, you can specify a tab’s image and hint text using the TabBase.TabImage and TabBase.ToolTip properties respectively.

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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-dynamically-add-and-remove-controls-in-callback-panel/CS/WebSite/Default.aspx.cs#L79

csharp
TabPage tab = new TabPage();
tab.Text = tabType;
tab.Name = id;

asp-net-web-forms-dynamically-add-and-remove-controls-in-callback-panel/VB/WebSite/Default.aspx.vb#L79

vb
Dim tab As TabPage = New TabPage()
tab.Text = tabType
tab.Name = id

See Also

NavigateUrl

TabImage

ToolTip

Page Control and Tab Control

TabBase Class

TabBase Members

DevExpress.Web Namespace