Back to Devexpress

BaseDocument.Caption Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-basedocument-bd079145.md

latest2.6 KB
Original Source

BaseDocument.Caption Property

Gets or sets the document’s caption.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Stringnull

A string that specifies the document’s caption.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Caption 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-document-manager-web-browser-ui/CS/Form1.cs#L47

csharp
{
    tabbedView1.ActiveDocument.Caption = (tabbedView1.ActiveDocument.Control as MyBrowser).Title;
    Document activeFloatDoc = FindDocument(sender); // for floating documents

winforms-document-manager-web-browser-ui/VB/Form1.vb#L39

vb
Private Sub wb_TitleChanged(ByVal sender As Object, ByVal e As EventArgs)
    tabbedView1.ActiveDocument.Caption = TryCast(tabbedView1.ActiveDocument.Control, MyBrowser).Title
    Dim activeFloatDoc As Document = FindDocument(sender) ' for floating documents

See Also

BaseDocument Class

BaseDocument Members

DevExpress.XtraBars.Docking2010.Views Namespace