Back to Devexpress

XtraMdiTabPage.Text Property

windowsforms-devexpress-dot-xtratabbedmdi-dot-xtramditabpage-04affd0e.md

latest2.8 KB
Original Source

XtraMdiTabPage.Text Property

Gets or sets the tab page’s caption.

Namespace : DevExpress.XtraTabbedMdi

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual string Text { get; set; }
vb
Public Overridable Property Text As String

Property Value

TypeDescription
String

A String value which specifies the text displayed within the page header.

|

Remarks

If the Text property’s value is null ( Nothing in Visual Basic), the page’s caption is specified by the Text property of the corresponding MDI child form.

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.

winforms-tabbed-mdi-manager-display-custom-header-button/CS/WindowsFormsApplication32/MyTabbedMdiManager/MyTabbedMdiManager.cs#L52

csharp
DXMenuItem menuItem = new DXMenuItem();
menuItem.Caption = page.Text;
menuItem.Image = GetMdiTabPageImage(page);

winforms-tabbed-mdi-manager-display-custom-header-button/VB/WindowsFormsApplication32/MyTabbedMdiManager/MyTabbedMdiManager.vb#L44

vb
Dim menuItem As DXMenuItem = New DXMenuItem()
menuItem.Caption = page.Text
menuItem.Image = GetMdiTabPageImage(page)

See Also

XtraMdiTabPage Class

XtraMdiTabPage Members

DevExpress.XtraTabbedMdi Namespace